mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-09 16:31:19 +12:00
implement triangle fan reindexing
This commit is contained in:
parent
ac651eba77
commit
d7e9aff230
6 changed files with 141 additions and 79 deletions
|
@ -2389,7 +2389,7 @@ static void _emitTEXSampleTextureCode(LatteDecompilerShaderContext* shaderContex
|
|||
else if(texDim == Latte::E_DIM::DIM_3D)
|
||||
{
|
||||
// 3 coords
|
||||
src->add("float2(");
|
||||
src->add("float3(");
|
||||
_emitTEXSampleCoordInputComponent(shaderContext, texInstruction, 0, LATTE_DECOMPILER_DTYPE_FLOAT);
|
||||
src->add(", ");
|
||||
_emitTEXSampleCoordInputComponent(shaderContext, texInstruction, 1, LATTE_DECOMPILER_DTYPE_FLOAT);
|
||||
|
@ -2434,7 +2434,7 @@ static void _emitTEXSampleTextureCode(LatteDecompilerShaderContext* shaderContex
|
|||
}
|
||||
else
|
||||
{
|
||||
// TODO: is this correct
|
||||
// TODO: is this correct?
|
||||
src->add("level(");
|
||||
_emitTEXSampleCoordInputComponent(shaderContext, texInstruction, 3, LATTE_DECOMPILER_DTYPE_FLOAT);
|
||||
src->add(")");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue