Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UV for image texture with no tex coord input #263

Merged
merged 1 commit into from
Aug 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,7 @@ def parse_node_to_fragment(self):
tex_coord_socket = self.bl_node.inputs[0]
tex_coord = self.in_sockets_map[tex_coord_socket]
if not tex_coord_socket.is_linked:
# default to use generated texture coordinates
self.flags.aabb_tex_coord_used = True
self.local_code.append("%s = %s" % (tex_coord, self.AABB_UVW))
self.local_code.append("%s = vec3(UV, 0.0)" % tex_coord)

tex_var = self.generate_tmp_texture_id(self.bl_node.name)
if self.bl_node.image is not None:
Expand Down