mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- fixed shader compilation.
This commit is contained in:
parent
3dc6ddbcc3
commit
1266339c0f
2 changed files with 2 additions and 2 deletions
|
@ -10,6 +10,7 @@ vec3 lightContribution(int i, vec3 normal)
|
|||
if (lightpos.w < lightdistance)
|
||||
return vec3(0.0); // Early out lights touching surface but not this fragment
|
||||
|
||||
vec3 lightdir = normalize(lightpos.xyz - pixelpos.xyz);
|
||||
float dotprod = dot(normal, lightdir);
|
||||
if (dotprod < 0.0) return vec3(0.0); // light hits from the backside. This can happen with full sector light lists and must be rejected for all cases.
|
||||
|
||||
|
@ -20,7 +21,6 @@ vec3 lightContribution(int i, vec3 normal)
|
|||
|
||||
if (lightcolor.a < 0.0) // Sign bit is the attenuated light flag
|
||||
{
|
||||
vec3 lightdir = normalize(lightpos.xyz - pixelpos.xyz);
|
||||
attenuation *= clamp(dotprod, 0.0, 1.0);
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ struct SBarInfo native ui
|
|||
}
|
||||
|
||||
|
||||
// The sole purpose of this wrapper is to elimintate the native dependencies of the status bar object
|
||||
// The sole purpose of this wrapper is to eliminate the native dependencies of the status bar object
|
||||
// because those would seriously impede the script conversion of the base class.
|
||||
|
||||
class SBarInfoWrapper : BaseStatusBar
|
||||
|
|
Loading…
Reference in a new issue