Moved shaders to new directory
This commit is contained in:
parent
0b3f8340e3
commit
99b226237a
1244 changed files with 0 additions and 0 deletions
21
shaders/glsl/texturecubemaparray/skybox.frag
Normal file
21
shaders/glsl/texturecubemaparray/skybox.frag
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#version 450
|
||||
|
||||
layout (binding = 1) uniform samplerCubeArray samplerCubeMapArray;
|
||||
|
||||
layout (binding = 0) uniform UBO
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 model;
|
||||
mat4 invModel;
|
||||
float lodBias;
|
||||
int cubeMapIndex;
|
||||
} ubo;
|
||||
|
||||
layout (location = 0) in vec3 inUVW;
|
||||
|
||||
layout (location = 0) out vec4 outFragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
outFragColor = textureLod(samplerCubeMapArray, vec4(inUVW, ubo.cubeMapIndex), ubo.lodBias);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue