System info & network
This commit is contained in:
13
shaders/environment_map.frag
Normal file
13
shaders/environment_map.frag
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 430 core
|
||||
|
||||
in vec3 frag_position;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
uniform samplerCube environment_map;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = texture(environment_map, frag_position.xzy);
|
||||
}
|
||||
Reference in New Issue
Block a user