DRTVWR-592: Don't read UVs for PBR terrain in single-plane case - works out to be more expensive than triplanar in some cases, and UVs are already trivial

meow-7.2.2
Cosmic Linden 2023-10-13 10:42:18 -07:00
parent fa11e94c3c
commit b1a3a274ff
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void main()
// (-x)z
vary_coords[1].xy = texture_transform(position.xz * vec2(-1, 1), texture_base_color_transform, texture_matrix0);
#elif TERRAIN_PLANAR_TEXTURE_SAMPLE_COUNT == 1
vary_texcoord0.xy = texture_transform(texcoord0, texture_base_color_transform, texture_matrix0);
vary_texcoord0.xy = texture_transform(position.xy, texture_base_color_transform, texture_matrix0);
#endif
vec4 tc = vec4(texcoord1,0,1);