💦 CREATE AND FUCK YOUR OWN AI CUMSLUT 🔥 TRY NOW ♥
Create AI Cumsluts 💦
November 30, 2019

Custom SRP: Directional Lights

The third Custom SRP tutorial dives into lighting. We limit ourselves to directional lights only, but that's already a lot of ground to cover. It works through topics that got covered by multiple tutorials of the old SRP series, besides using a new approach.

Directional Lights (Catlikecoding)

Comments (2)

K
Konstantinos Spyropoulos · May 24, 2020

Thank you for the awesome tutorials! I think BRDF.hlsl:L39 "float normalization = brdf.roughness * 4.0 + 2.0;" disagrees with the specular strength formula in paragraph 3.9 that says n = 4r - 2? I believe the code is correct and the formula should say n = 4r + 2.

C
Catlike Coding · May 25, 2020

Good catch! The text is wrong, it's 4r + 2. Fixed it.