atmosphere: declare uEarthRadius in sky shader

This commit is contained in:
Richard Zink committed 2026-10-12 14:00:50 +02:00
1 parent b9094ebd8b
commit e47a39fa46
1 file changed
+1
+1
View File
@@ -92,6 +92,7 @@ var FRAG_SRC = [
'uniform float uAtmoDensity;',
'uniform float uAtmoGrayTau;',
'uniform float uAtmoGain;',
'uniform float uEarthRadius;',
'uniform vec3 uAtmoBlueColor;',
'uniform vec3 uAtmoGrayColor;',
'uniform vec3 uSunColor;', // direct beam after atmospheric extinction