Skip to content

Commit

Permalink
Fix type in shader define for diffuse transmission
Browse files Browse the repository at this point in the history
  • Loading branch information
UX3D-haertl committed Aug 29, 2024
1 parent 8a33878 commit 3a97ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Renderer/shaders/textures.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ uniform mat3 u_DiffuseTransmissionColorUVTransform;
vec2 getDiffuseTransmissionUV()
{
vec3 uv = vec3(u_DiffuseTransmissionUVSet < 1 ? v_texcoord_0 : v_texcoord_1, 1.0);
#ifdef HAS_DIFFUSE_TRANSMISSION_UV_TRANSFORM
#ifdef HAS_DIFFUSETRANSMISSION_UV_TRANSFORM
uv = u_DiffuseTransmissionUVTransform * uv;
#endif
return uv.xy;
Expand All @@ -370,7 +370,7 @@ vec2 getDiffuseTransmissionUV()
vec2 getDiffuseTransmissionColorUV()
{
vec3 uv = vec3(u_DiffuseTransmissionColorUVSet < 1 ? v_texcoord_0 : v_texcoord_1, 1.0);
#ifdef HAS_DIFFUSE_TRANSMISSION_COLOR_UV_TRANSFORM
#ifdef HAS_DIFFUSETRANSMISSIONCOLOR_UV_TRANSFORM
uv = u_DiffuseTransmissionColorUVTransform * uv;
#endif
return uv.xy;
Expand Down

0 comments on commit 3a97ac2

Please sign in to comment.