Skip to content

Commit

Permalink
fix: struct in shader must init value in alipay miniprogram (#775)
Browse files Browse the repository at this point in the history
* fix: struct in shader must init value in miniprogram
  • Loading branch information
zhuxudong authored May 5, 2022
1 parent f25588a commit 4e82285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/shaderlib/pbr/pbr_frag.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Geometry geometry;
Material material;
ReflectedLight reflectedLight;
ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );

initGeometry(geometry);
initMaterial(material, geometry);
Expand Down

0 comments on commit 4e82285

Please sign in to comment.