| 1 |
#version 450 |
| 2 |
|
| 3 |
layout(location = 0) out vec2 FragColor; |
| 4 |
layout(set = 0, binding = 0) uniform sampler2D uSampler2D; |
| 5 |
layout(set = 0, binding = 1) uniform sampler3D uSampler3D; |
| 6 |
layout(set = 0, binding = 2) uniform samplerCube uSamplerCube; |
| 7 |
layout(set = 0, binding = 3) uniform sampler uSampler; |
| 8 |
layout(set = 0, binding = 4) uniform texture2D uTexture2D; |
| 9 |
layout(set = 0, binding = 5) uniform texture3D uTexture3D; |
| 10 |
layout(set = 0, binding = 6) uniform textureCube uTextureCube; |
| 11 |
layout(location = 0) in vec3 vUV; |
| 12 |
|
| 13 |
void from_function() |
| 14 |
{ |
| 15 |
FragColor += textureQueryLod(uSampler2D, vUV.xy); |
| 16 |
FragColor += textureQueryLod(uSampler3D, vUV); |
| 17 |
FragColor += textureQueryLod(uSamplerCube, vUV); |
| 18 |
FragColor += textureQueryLod(sampler2D(uTexture2D, uSampler), vUV.xy); |
| 19 |
FragColor += textureQueryLod(sampler3D(uTexture3D, uSampler), vUV); |
| 20 |
FragColor += textureQueryLod(samplerCube(uTextureCube, uSampler), vUV); |
| 21 |
} |
| 22 |
|
| 23 |
void main() |
| 24 |
{ |
| 25 |
FragColor = vec2(0.0); |
| 26 |
FragColor += textureQueryLod(uSampler2D, vUV.xy); |
| 27 |
FragColor += textureQueryLod(uSampler3D, vUV); |
| 28 |
FragColor += textureQueryLod(uSamplerCube, vUV); |
| 29 |
FragColor += textureQueryLod(sampler2D(uTexture2D, uSampler), vUV.xy); |
| 30 |
FragColor += textureQueryLod(sampler3D(uTexture3D, uSampler), vUV); |
| 31 |
FragColor += textureQueryLod(samplerCube(uTextureCube, uSampler), vUV); |
| 32 |
from_function(); |
| 33 |
} |