third_party/spirv-cross/reference/opt/shaders/frag/scalar-refract-reflect.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(location = 0) out float FragColor; |
| 4 | layout(location = 0) in vec3 vRefract; |
| 5 | |
| 6 | void main() |
| 7 | { |
| 8 | FragColor = refract(vRefract.x, vRefract.y, vRefract.z); |
| 9 | FragColor += reflect(vRefract.x, vRefract.y); |
| 10 | FragColor += refract(vRefract.xy, vRefract.yz, vRefract.z).y; |
| 11 | FragColor += reflect(vRefract.xy, vRefract.zy).y; |
| 12 | } |
| 13 |