Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/effect_dof_frag.glsl
| Context not available. | |||||
| /* Circle Dof */ | /* Circle Dof */ | ||||
| float dist = length(particlecoord); | float dist = length(particlecoord); | ||||
| /* Ouside of bokeh shape */ | /* Outside of bokeh shape */ | ||||
| if (dist > 1.0) { | if (dist > 1.0) { | ||||
| discard; | discard; | ||||
| } | } | ||||
| Context not available. | |||||
| * Giving us the new linear radius to the shape edge. */ | * Giving us the new linear radius to the shape edge. */ | ||||
| dist /= r; | dist /= r; | ||||
| /* Ouside of bokeh shape */ | /* Outside of bokeh shape */ | ||||
| if (dist > 1.0) { | if (dist > 1.0) { | ||||
| discard; | discard; | ||||
| } | } | ||||
| Context not available. | |||||