diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index bc8598aeda7..d543f4adbf3 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -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) diff --git a/packages/engine/Source/Renderer/AutomaticUniforms.js b/packages/engine/Source/Renderer/AutomaticUniforms.js index 73382e649f7..29801f986f7 100644 --- a/packages/engine/Source/Renderer/AutomaticUniforms.js +++ b/packages/engine/Source/Renderer/AutomaticUniforms.js @@ -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; },