Questions tagged [function]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers

GLSL, Fragment Shader: How to separate functions (like noise, transform...) to reuse in different projects

I'm a total newbie to coding and recently got interested into generative art. This is my problem: I have to copy all of the functions I need (and there are a lot) in every single fragment file I'm ...
Noah Greenrock's user avatar
5 votes
1 answer

Why does the G1 term have a 2 in the numerator in Walter's formula, but not in Heitz's generalized formula?

In Understanding the Masking-Shadowing Function in Microfacet-Based BRDFs, Eric Heitz derives the Separable Masking and Shadowing function as (P.83-84): In the mentioned Microfacet Models for ...
wip's user avatar
  • 1,851
10 votes
1 answer

Reasons of the assumptions for the microfacet distribution function?

The paper Microfacet Models for Refraction through Rough Surfaces (among others) reminds us the following assumptions about the microfacet distribution function D: Microfacet density is positive ...
wip's user avatar
  • 1,851