Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

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).

Download latest version | Report

Version history

Version Publish Date Changes
0.0.5 2015-03-26 00:19:27 -Changed the reflection method Download
0.0.3 2013-11-10 16:57:40 -Changed drawing method to work with other full screen effects
-Rewritten the shader effect
Download
0.0.2 2012-09-01 11:44:12 First public release Download