atmosphere: declare uEarthRadius in sky shader
This commit is contained in:
1 parent
b9094ebd8b
commit
e47a39fa46
1 file changed
+1
Vendored
+1
@@ -92,6 +92,7 @@ var FRAG_SRC = [
|
|||||||
'uniform float uAtmoDensity;',
|
'uniform float uAtmoDensity;',
|
||||||
'uniform float uAtmoGrayTau;',
|
'uniform float uAtmoGrayTau;',
|
||||||
'uniform float uAtmoGain;',
|
'uniform float uAtmoGain;',
|
||||||
|
'uniform float uEarthRadius;',
|
||||||
'uniform vec3 uAtmoBlueColor;',
|
'uniform vec3 uAtmoBlueColor;',
|
||||||
'uniform vec3 uAtmoGrayColor;',
|
'uniform vec3 uAtmoGrayColor;',
|
||||||
'uniform vec3 uSunColor;', // direct beam after atmospheric extinction
|
'uniform vec3 uSunColor;', // direct beam after atmospheric extinction
|
||||||
|
|||||||
Reference in new issue
Block a user