diff --git a/data/shader/skydome.fsh b/data/shader/skydome.fsh index 7d3f4e2..68f52d2 100644 --- a/data/shader/skydome.fsh +++ b/data/shader/skydome.fsh @@ -14,7 +14,7 @@ uniform vec3 cameraCenter; uniform vec3 sunColor; uniform vec3 directionalVector; -const float sunSize = 40.0; +const float sunSize = 20.0; void main() { vec4 textureColor = vec4(0.0, 0.0, 0.0, 1.0); diff --git a/data/shader/skydome.vsh b/data/shader/skydome.vsh index 2dc7b65..0fa520e 100644 --- a/data/shader/skydome.vsh +++ b/data/shader/skydome.vsh @@ -17,6 +17,6 @@ out vec4 sunPosition; void main() { fragPosition = modelMatrix * vec4(aPosition, 1.0); vTexCoord = aTexCoord; - sunPosition = (normalize(vec4(directionalVector, 0.0)) * skydomeSize) + vec4(cameraCenter, 1.0); + sunPosition = (normalize(vec4(directionalVector, 0.0)) * skydomeSize) + vec4(cameraCenter.x, 0, cameraCenter.z, 1.0); gl_Position = modelViewProjectionMatrix * vec4(aPosition, 1.0); }