mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 18:24:55 +00:00
Fixes for CModelShaders hlsl/metal
This commit is contained in:
@@ -155,7 +155,7 @@ cbuffer ThermalUniform : register(b2) {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(URDE_THERMAL_COLD)
|
#if defined(URDE_THERMAL_COLD) || defined(URDE_THERMAL_STATIC)
|
||||||
float3 LightingFunc(in VertToFrag vtf) {
|
float3 LightingFunc(in VertToFrag vtf) {
|
||||||
return float3(1.0, 1.0, 1.0);
|
return float3(1.0, 1.0, 1.0);
|
||||||
}
|
}
|
||||||
@@ -279,6 +279,12 @@ float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(URDE_THERMAL_STATIC)
|
||||||
|
float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
||||||
|
return colorIn;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(URDE_SOLID)
|
#if defined(URDE_SOLID)
|
||||||
float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
float4 PostFunc(in VertToFrag vtf, float4 colorIn) {
|
||||||
return solidColor;
|
return solidColor;
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ float3 LightingFunc(thread VertToFrag& vtf, constant LightingUniform& lu, textur
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(URDE_THERMAL_COLD)
|
#if defined(URDE_THERMAL_COLD) || defined(URDE_THERMAL_STATIC)
|
||||||
struct LightingUniform {};
|
struct LightingUniform {};
|
||||||
float3 LightingFunc(thread VertToFrag& vtf, constant LightingUniform& lu, texture2d<float> extTex0, sampler clampSamp) {
|
float3 LightingFunc(thread VertToFrag& vtf, constant LightingUniform& lu, texture2d<float> extTex0, sampler clampSamp) {
|
||||||
return float3(1.0, 1.0, 1.0);
|
return float3(1.0, 1.0, 1.0);
|
||||||
@@ -267,6 +267,14 @@ float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(URDE_THERMAL_STATIC)
|
||||||
|
float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
||||||
|
texture2d<float> extTex0, texture2d<float> extTex1, texture2d<float> extTex2,
|
||||||
|
sampler samp, sampler clampSamp, sampler clampEdgeSamp, float4 colorIn) {
|
||||||
|
return colorIn;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(URDE_SOLID)
|
#if defined(URDE_SOLID)
|
||||||
float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
float4 PostFunc(thread VertToFrag& vtf, constant LightingUniform& lu,
|
||||||
texture2d<float> extTex0, texture2d<float> extTex1, texture2d<float> extTex2,
|
texture2d<float> extTex0, texture2d<float> extTex1, texture2d<float> extTex2,
|
||||||
|
|||||||
2
hecl
2
hecl
Submodule hecl updated: 8d5c99e10a...eebc1a8b62
Reference in New Issue
Block a user