mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
Shadergen: Remove unused vertex shader code
This commit is contained in:
parent
f16486757b
commit
df5d14e3d8
1 changed files with 1 additions and 6 deletions
|
@ -72,11 +72,6 @@ std::string FragmentGenerator::getDefaultVertexShader() {
|
||||||
out float gl_ClipDistance[2];
|
out float gl_ClipDistance[2];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
vec4 abgr8888ToVec4(uint abgr) {
|
|
||||||
const float scale = 1.0 / 255.0;
|
|
||||||
return scale * vec4(float(abgr & 0xffu), float((abgr >> 8) & 0xffu), float((abgr >> 16) & 0xffu), float(abgr >> 24));
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
gl_Position = a_coords;
|
gl_Position = a_coords;
|
||||||
vec4 colourAbs = abs(a_vertexColour);
|
vec4 colourAbs = abs(a_vertexColour);
|
||||||
|
@ -677,4 +672,4 @@ void FragmentGenerator::compileFog(std::string& shader, const PICA::FragmentConf
|
||||||
shader += "vec2 value = texelFetch(u_tex_luts, ivec2(int(clamped_index), 24), 0).rg;"; // fog LUT is past the light LUTs
|
shader += "vec2 value = texelFetch(u_tex_luts, ivec2(int(clamped_index), 24), 0).rg;"; // fog LUT is past the light LUTs
|
||||||
shader += "float fog_factor = clamp(value.r + value.g * delta, 0.0, 1.0);";
|
shader += "float fog_factor = clamp(value.r + value.g * delta, 0.0, 1.0);";
|
||||||
shader += "combinerOutput.rgb = mix(fog_color, combinerOutput.rgb, fog_factor);";
|
shader += "combinerOutput.rgb = mix(fog_color, combinerOutput.rgb, fog_factor);";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue