diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-02 21:01:37 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-02-02 21:01:37 +0300 |
commit | 088fc410d93aceb6b7b507c28febcfbb8e540aa4 (patch) | |
tree | 69a7cfdb505a0eadfdb8f911fd8e36c4418a25fa /source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl | |
parent | 6f3a1194645fedc8894187f5e68ae5a4f0665a7f (diff) |
EEVEE: Finish implementing GPUShaderCreateInfo and fix compilation
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl b/source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl index 7cc0f39f39b..99aa235f261 100644 --- a/source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/eevee_surface_deferred_frag.glsl @@ -6,22 +6,13 @@ #pragma BLENDER_REQUIRE(eevee_gbuffer_lib.glsl) #pragma BLENDER_REQUIRE(eevee_nodetree_eval_lib.glsl) #pragma BLENDER_REQUIRE(eevee_sampling_lib.glsl) -#pragma BLENDER_REQUIRE(eevee_shader_shared.hh) - -layout(std140) uniform sampling_block -{ - SamplingData sampling; -}; - -utility_tx_fetch_define(utility_tx); -utility_tx_sample_define(utility_tx); void main(void) { g_data = init_globals(); float noise_offset = sampling_rng_1D_get(sampling, SAMPLING_CLOSURE); - float noise = utility_tx_fetch(gl_FragCoord.xy, UTIL_BLUE_NOISE_LAYER).r; + float noise = utility_tx_fetch(utility_tx, gl_FragCoord.xy, UTIL_BLUE_NOISE_LAYER).r; g_data.closure_rand = fract(noise + noise_offset); /* TODO(fclem) other RNG. */ g_data.transmit_rand = fract(g_data.closure_rand * 6.1803398875); |