Skip to content

Commit

Permalink
fix czm_specularEnvironmentMaps datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-ECO\huwenkang committed Dec 25, 2024
1 parent 47b5d29 commit df30f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/engine/Source/Renderer/AutomaticUniforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,11 +1488,11 @@ const AutomaticUniforms = {
*
* @example
* // GLSL declaration
* uniform sampler2D czm_specularEnvironmentMaps;
* uniform samplerCube czm_specularEnvironmentMaps;
*/
czm_specularEnvironmentMaps: new AutomaticUniform({
size: 1,
datatype: WebGLConstants.SAMPLER_2D,
datatype: WebGLConstants.SAMPLER_CUBE,
getValue: function (uniformState) {
return uniformState.specularEnvironmentMaps;
},
Expand Down

0 comments on commit df30f2b

Please sign in to comment.