mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-16 04:07:28 +01:00
glasm: Implement gl_FrongFacing attribute
This commit is contained in:
1 parent
0c82ee3444
commit
bf1ad74e8a
1 file changed
+3
@@ -71,6 +71,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr,
|
||||
case IR::Attribute::VertexId:
|
||||
ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name);
|
||||
break;
|
||||
case IR::Attribute::FrontFace:
|
||||
ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.stage_name);
|
||||
break;
|
||||
default:
|
||||
throw NotImplementedException("Get attribute {}", attr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user