Skip to content

Commit 371394e

Browse files
mvaligurskyMartin Valigursky
andauthored
[Fix] Fixed hight texture shader compilation (#7885)
Co-authored-by: Martin Valigursky <[email protected]>
1 parent 89faafc commit 371394e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scene/shader-lib/glsl/chunks/standard/frag/stdDeclaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default /* glsl */`
4141
// parallax
4242
#ifdef STD_HEIGHT_MAP
4343
vec2 dUvOffset;
44-
#ifdef STD_DIFFUSE_TEXTURE_ALLOCATE
44+
#ifdef STD_HEIGHT_TEXTURE_ALLOCATE
4545
uniform sampler2D texture_heightMap;
4646
#endif
4747
#endif

src/scene/shader-lib/wgsl/chunks/standard/frag/stdDeclaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default /* wgsl */`
4343
// parallax
4444
#ifdef STD_HEIGHT_MAP
4545
var<private> dUvOffset: vec2f;
46-
#ifdef STD_DIFFUSE_TEXTURE_ALLOCATE
46+
#ifdef STD_HEIGHT_TEXTURE_ALLOCATE
4747
var texture_heightMap : texture_2d<f32>;
4848
var texture_heightMapSampler : sampler;
4949
#endif

0 commit comments

Comments
 (0)