Skyboxes
This commit is contained in:
parent
eb01ec4877
commit
f135d99d74
60 changed files with 924 additions and 90 deletions
11
resources/EngineResources/shaders/skybox_fragment.glsl
Normal file
11
resources/EngineResources/shaders/skybox_fragment.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec3 outTexCoords;
|
||||
|
||||
layout(location = 1) out vec4 outColor;
|
||||
|
||||
layout(set = 2, binding = 0) uniform samplerCube skyboxSampler;
|
||||
|
||||
void main() {
|
||||
outColor = vec4(texture(skyboxSampler, outTexCoords).rgb, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue