We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 217e20e commit 0b0a7d7Copy full SHA for 0b0a7d7
examples/jsm/objects/Sky.js
@@ -138,8 +138,6 @@ Sky.SkyShader = {
138
uniform float mieDirectionalG;
139
uniform vec3 up;
140
141
- const vec3 cameraPos = vec3( 0.0, 0.0, 0.0 );
142
-
143
// constants for atmospheric scattering
144
const float pi = 3.141592653589793238462643383279502884197169;
145
@@ -169,7 +167,7 @@ Sky.SkyShader = {
169
167
170
168
void main() {
171
172
- vec3 direction = normalize( vWorldPosition - cameraPos );
+ vec3 direction = normalize( vWorldPosition - cameraPosition );
173
174
// optical length
175
// cutoff angle at 90 to avoid singularity in next formula.
0 commit comments