mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 02:53:43 +02:00
fixed ravestick, merged
This commit is contained in:
parent
bb28369dee
commit
6fc98bd577
2 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,7 @@ uniform sampler2D originalTexture;
|
|||
// the interpolated normal
|
||||
in vec3 interpolatedNormal;
|
||||
in vec2 varTexcoord;
|
||||
in vec4 varColor;
|
||||
|
||||
struct PolyLineUniforms {
|
||||
vec3 color;
|
||||
|
@ -35,6 +36,7 @@ void main(void) {
|
|||
|
||||
vec4 texel = texture(originalTexture, varTexcoord);
|
||||
int frontCondition = 1 -int(gl_FrontFacing) * 2;
|
||||
vec3 color = varColor.rgb;
|
||||
packDeferredFragmentTranslucent(
|
||||
interpolatedNormal * frontCondition,
|
||||
texel.a,
|
||||
|
|
|
@ -23,9 +23,13 @@ out vec3 interpolatedNormal;
|
|||
//the diffuse texture
|
||||
out vec2 varTexcoord;
|
||||
|
||||
out vec4 varColor;
|
||||
|
||||
void main(void) {
|
||||
|
||||
varTexcoord = inTexCoord0.st;
|
||||
|
||||
// pass along the diffuse color
|
||||
varColor = colorToLinearRGBA(inColor);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue