Skip to content
Snippets Groups Projects
Commit 53e4b6f2 authored by Bouvry Arnaud's avatar Bouvry Arnaud
Browse files

[feature] Implement a simplistic model of diffusion

Implement a directional diffusion model with linear attenuation depending on the angle with the lenticular sheet diffuser's normal.
The more the diffused ray deviates from the plane normal, the more it is attenuated.
The rays outside of the viewing angle are suppressed.
Comes with working visualisation (I copied and adapted the "show_light_map" function from light.py to implement it quickly).
This is still Work In Progress, next step is to extend the method to accept n rays as input (for now it only works with 1 ray ; very inefficient).
parent d1219f04
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment