From 623c054ccb74f4c95d246de23e964c7c8cb4416f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Thu, 29 Aug 2024 02:21:09 +0200 Subject: [PATCH] UnifiedShader: add dFdx, dFdy --- Media/Main/OgreUnifiedShader.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Media/Main/OgreUnifiedShader.h b/Media/Main/OgreUnifiedShader.h index e6e59a97f98..538f53392a4 100644 --- a/Media/Main/OgreUnifiedShader.h +++ b/Media/Main/OgreUnifiedShader.h @@ -50,6 +50,8 @@ vec4 textureCubeLod(samplerCube s, vec3 v, float lod) { return texCUBElod(s, vec #define mix lerp #define fract frac #define inversesqrt rsqrt +#define dFdx ddx +#define dFdy ddy float mod(float _a, float _b) { return _a - _b * floor(_a / _b); } vec2 mod(vec2 _a, vec2 _b) { return _a - _b * floor(_a / _b); }