Jamie Greunbaum 8eaef49f2e - Added game room, including pool and skee-ball.
- Moved video screen into its own separate movie tent.
- Adjusted stable post-processing volume.
- Chickens are now at full volume.
- Added button to toggle chickens off and on.
2026-02-09 03:49:54 -05:00

71 lines
1.6 KiB
HLSL

#ifndef FILAMENT_COMMON_LIGHTING
#define FILAMENT_COMMON_LIGHTING
struct Light {
float4 colorIntensity; // rgb, pre-exposed intensity
float3 l;
float attenuation;
float NoL;
float3 worldPosition;
};
struct PixelParams {
float3 diffuseColor;
float perceptualRoughness;
float perceptualRoughnessUnclamped;
float3 f0;
float roughness;
float3 dfg;
float3 energyCompensation;
#if defined(MATERIAL_HAS_CLEAR_COAT)
float clearCoat;
float clearCoatPerceptualRoughness;
float clearCoatRoughness;
#endif
#if defined(MATERIAL_HAS_SHEEN_COLOR)
float3 sheenColor;
#if !defined(SHADING_MODEL_CLOTH)
float sheenRoughness;
float sheenPerceptualRoughness;
float sheenScaling;
float sheenDFG;
#endif
#endif
#if defined(MATERIAL_HAS_ANISOTROPY)
float3 anisotropicT;
float3 anisotropicB;
float anisotropy;
#endif
#if defined(SHADING_MODEL_SUBSURFACE) || defined(HAS_REFRACTION)
float thickness;
#endif
#if defined(SHADING_MODEL_SUBSURFACE)
float3 subsurfaceColor;
float subsurfacePower;
#endif
#if defined(SHADING_MODEL_CLOTH) && defined(MATERIAL_HAS_SUBSURFACE_COLOR)
float3 subsurfaceColor;
#endif
#if defined(HAS_REFRACTION)
float etaRI;
float etaIR;
float transmission;
float uThickness;
float3 absorption;
#endif
};
float computeMicroShadowing(float NoL, float visibility) {
// Chan 2018, "Material Advances in Call of Duty: WWII"
float aperture = rsqrt(1.0 - visibility);
float microShadow = saturate(NoL * aperture);
return microShadow * microShadow;
};
#endif // FILAMENT_COMMON_LIGHTING