Changeset 1811


Ignore:
Timestamp:
Aug 24, 2012, 2:41:46 PM (8 years ago)
Author:
rez
Message:

fixed all noise/displacement effects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/render.cpp

    r1810 r1811  
    980980        shader_noise->SetUniform(shader_noise_texture, fbo_front->GetTexture(), 0);
    981981        shader_noise->SetUniform(shader_noise_screen_size, (vec2)screen_size);
    982         shader_noise->SetUniform(shader_noise_time, fx_angle);
     982        shader_noise->SetUniform(shader_noise_time, fmodf(fx_angle, 1.0f));
    983983        shader_noise->SetUniform(shader_noise_offset, noise_offset);
    984984        shader_noise->SetUniform(shader_noise_noise, noise_noise);
Note: See TracChangeset for help on using the changeset viewer.