Initial work on new glass shader
# This is a combination of 2 commits.
# This is the 1st commit message:
Initial work on new glass shader
Grime implementation & let grime cast shadows
# This is the commit message #2:
Grime implementation & let grime cast shadows
# This is a combination of 2 commits.
# This is the 1st commit message:
Initial work on new glass shader
Grime implementation & let grime cast shadows
Grime implementation & let grime cast shadows
Blur
# This is the commit message #2:
Blur
Initial work on new glass shader
Grime implementation & let grime cast shadows
Grime implementation & let grime cast shadows
Blur
Blur
Allow fogging of grime & glass
Allow fogging of grime & glass
Allow fogging of grime & glass
Fix grime on refraction variant
https://files.facepunch.com/ognik/1b0111b1/sbox-dev_VGCbGQv4Tr.jpg
Allow tweaking of the specular of the glass for its reflections
Allow tweaking of the specular of the glass for its reflections
Delete core glass shader & sbox_glass, new shader becomes glass
Fix glass not working properly with tiled rendering off
Cleanup & lower default opacity so we don't shadow by default
Update some existing glass materials
https://files.facepunch.com/ognik/1b0211b1/sbox-dev_QPGRwiTZTq.jpg
Missed this shader removal whoops
Refraction glass color tint now works with opacity
Drop max refraction distance, doesn't need to be an artist tuned. Fix glass tint not working in non refraction mode
Allow switch to multiply for color tinting in refraction mode because it can look better in some situations
Blur masks
Remove grime as a feature and have it on by default, reorganize attribute layout
Remove glass from shader compiler
Fix grime masks not behaving as expected
Recompile with stripped shaders
Add attributes to disable blur & refraction
we can expose this as a convar is needed then
Reorganization & name cleanup
- Reorganize all sections within the shader
- Refraction can have its own normal map now
- Fresnel can be toggled
- Fixed an ambiguity with tint color
Fix specular not being taken into account on glass transparency
Lets get rid of these for now, fixes translucency sorting
Update some glass materials again