Continued work on PBR example
This commit is contained in:
parent
85b44a0346
commit
0f8bed9fde
9 changed files with 263 additions and 28 deletions
12
data/shaders/pbr/skybox.frag
Normal file
12
data/shaders/pbr/skybox.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 450
|
||||
|
||||
layout (binding = 1) uniform samplerCube samplerEnv;
|
||||
|
||||
layout (location = 0) in vec3 inUVW;
|
||||
|
||||
layout (location = 0) out vec4 outFragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
outFragColor = texture(samplerEnv, inUVW);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue