rssshader_water_refract_test
Category: | script |
---|---|
Author(s): | Ren712 |
Downloads: | 6852 |
Rate: | You need to be logged in to vote |
Rating: | 3.7 (15 Votes) |
Description:
Resource: Shader water refract test
Video: https://www.youtube.com/watch?v=Tvpjsa1Iwdw
The shader is applied to water texture. It makes reflections
of what is above and in it.
It needs one frame to get the reflection (screen image) and another to draw the effect.
During the first step, the screen is covered by full screen dxDrawImage,
so expect some visible FPS drops.
This shader uses some vertex and pixel calculations from water_shader by Ccw.
http://wiki.multitheftauto.com/wiki/Shader_examples
Consider that a fun example of what can be done with a projective texture
(like mirrors, glass refractons and stuff).
Video: https://www.youtube.com/watch?v=Tvpjsa1Iwdw
The shader is applied to water texture. It makes reflections
of what is above and in it.
It needs one frame to get the reflection (screen image) and another to draw the effect.
During the first step, the screen is covered by full screen dxDrawImage,
so expect some visible FPS drops.
This shader uses some vertex and pixel calculations from water_shader by Ccw.
http://wiki.multitheftauto.com/wiki/Shader_examples
Consider that a fun example of what can be done with a projective texture
(like mirrors, glass refractons and stuff).