Skip to content

Commit

Permalink
Merge pull request #12395 from XiaoHu1994/fix-czm_specularEnvironment…
Browse files Browse the repository at this point in the history
…Maps-datatype

Fix czm_specularEnvironmentMaps datatype
  • Loading branch information
jjhembd authored Jan 6, 2025
2 parents b44fddb + 106da8e commit a21c02e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
- [Kirn Kim](https://github.com/squrki)
- [Emanuele Mastaglia](https://github.com/Masty88)
- [Connor Manning](https://github.com/connormanning)
- [胡文康](https://github.com/XiaoHu1994)
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 a21c02e

Please sign in to comment.