X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=antikythera;a=blobdiff_plain;f=sdr%2Fskydome.p.glsl;fp=sdr%2Fskydome.p.glsl;h=76821504a8a6c0f308f7c8331e50c2cea00c1fef;hp=0000000000000000000000000000000000000000;hb=ccc1a688b59e25bb934a0d3e2bbf477960068d4f;hpb=080d7a779d43f549fc16c44e709cbf5989180fdf diff --git a/sdr/skydome.p.glsl b/sdr/skydome.p.glsl new file mode 100644 index 0000000..7682150 --- /dev/null +++ b/sdr/skydome.p.glsl @@ -0,0 +1,12 @@ +uniform samplerCube envmap; + +varying vec3 normal; + +void main() +{ + vec3 n = normalize(normal); + vec3 texel = textureCube(envmap, n).xyz; + + gl_FragColor.rgb = texel; + gl_FragColor.a = 1.0; +}