mirror of https://github.com/AxioDL/metaforce.git
Fix AMD crash with instanced particle shaders
This commit is contained in:
parent
4a19b160b9
commit
f4b01e9c3f
|
@ -30,9 +30,10 @@ BOO_GLSL_BINDING_HEAD
|
||||||
"SBINDING(0) out VertToFrag vtf;\n"
|
"SBINDING(0) out VertToFrag vtf;\n"
|
||||||
"void main()\n"
|
"void main()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
" vec4 pos = posIn[gl_VertexID];\n"
|
||||||
" vtf.color = colorIn * moduColor;\n"
|
" vtf.color = colorIn * moduColor;\n"
|
||||||
" vtf.uv = uvsIn[gl_VertexID].xy;\n"
|
" vtf.uv = uvsIn[gl_VertexID].xy;\n"
|
||||||
" gl_Position = mvp * posIn[gl_VertexID];\n"
|
" gl_Position = mvp * pos;\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static const char* FS_GLSL_TEX =
|
static const char* FS_GLSL_TEX =
|
||||||
|
@ -95,11 +96,12 @@ BOO_GLSL_BINDING_HEAD
|
||||||
"SBINDING(0) out VertToFrag vtf;\n"
|
"SBINDING(0) out VertToFrag vtf;\n"
|
||||||
"void main()\n"
|
"void main()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
" vec4 pos = posIn[gl_VertexID];\n"
|
||||||
" vtf.color = colorIn * moduColor;\n"
|
" vtf.color = colorIn * moduColor;\n"
|
||||||
" vtf.uvScene = uvsInScene;\n"
|
" vtf.uvScene = uvsInScene;\n"
|
||||||
" vtf.uvTexr = uvsInTexrTind[gl_VertexID].xy;\n"
|
" vtf.uvTexr = uvsInTexrTind[gl_VertexID].xy;\n"
|
||||||
" vtf.uvTind = uvsInTexrTind[gl_VertexID].zw;\n"
|
" vtf.uvTind = uvsInTexrTind[gl_VertexID].zw;\n"
|
||||||
" gl_Position = mvp * posIn[gl_VertexID];\n"
|
" gl_Position = mvp * pos;\n"
|
||||||
" gl_Position = FLIPFROMGL(gl_Position);\n"
|
" gl_Position = FLIPFROMGL(gl_Position);\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
|
@ -170,8 +172,9 @@ BOO_GLSL_BINDING_HEAD
|
||||||
"SBINDING(0) out VertToFrag vtf;\n"
|
"SBINDING(0) out VertToFrag vtf;\n"
|
||||||
"void main()\n"
|
"void main()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
|
" vec4 pos = posIn[gl_VertexID];\n"
|
||||||
" vtf.color = colorIn * moduColor;\n"
|
" vtf.color = colorIn * moduColor;\n"
|
||||||
" gl_Position = mvp * posIn[gl_VertexID];\n"
|
" gl_Position = mvp * pos;\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
|
|
||||||
static const char* FS_GLSL_NOTEX =
|
static const char* FS_GLSL_NOTEX =
|
||||||
|
|
|
@ -16,6 +16,7 @@ CScriptSpawnPoint::CScriptSpawnPoint(TUniqueId uid, std::string_view name, const
|
||||||
x64_itemCounts[int(CPlayerState::EItemType::ThermalVisor)] = 1;
|
x64_itemCounts[int(CPlayerState::EItemType::ThermalVisor)] = 1;
|
||||||
x64_itemCounts[int(CPlayerState::EItemType::XRayVisor)] = 1;
|
x64_itemCounts[int(CPlayerState::EItemType::XRayVisor)] = 1;
|
||||||
x64_itemCounts[int(CPlayerState::EItemType::GrappleBeam)] = 1;
|
x64_itemCounts[int(CPlayerState::EItemType::GrappleBeam)] = 1;
|
||||||
|
x64_itemCounts[int(CPlayerState::EItemType::BoostBall)] = 1;
|
||||||
x10c_24_firstSpawn = defaultSpawn;
|
x10c_24_firstSpawn = defaultSpawn;
|
||||||
x10c_25_morphed = morphed;
|
x10c_25_morphed = morphed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue