rasterizer: apparently decal needs a special case for texture-disable after all.
This commit is contained in:
parent
49689be1ce
commit
84bfa26bc7
|
@ -482,6 +482,8 @@ public:
|
|||
//#endif
|
||||
break;
|
||||
case 1: //decal
|
||||
if(sampler.enabled)
|
||||
{
|
||||
u = shader.invu*shader.w;
|
||||
v = shader.invv*shader.w;
|
||||
texColor = sample(u,v);
|
||||
|
@ -489,6 +491,7 @@ public:
|
|||
dst.g = decal_table[texColor.a][texColor.g][shader.materialColor.g];
|
||||
dst.b = decal_table[texColor.a][texColor.b][shader.materialColor.b];
|
||||
dst.a = shader.materialColor.a;
|
||||
} else dst = shader.materialColor;
|
||||
break;
|
||||
case 2: //toon/highlight shading
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue