rssshader_water_refract_test3
Category: | script |
---|---|
Author(s): | Ren712 |
Downloads: | 898 |
Rate: | You need to be logged in to vote |
Rating: | 5 (3 Votes) |
Description:
Resource: Shader water refract test 3
Author: Ren712
REQUIRES MTA 1.5 NIGHTLY - DOWNLOAD HERE http://nightly.mtasa.com
This resource works with (but does not require) shader_dynamic_sky:
https://community.multitheftauto.com/index.php?p=resources..mp;id=6828
This resource's main purpose is to test one of the interesting MTA 1.5 features.
That is - Multiple Render Targets in Shader support. The effect applies a simple
refraction to water. The screensource (on which the refraction reles on)
is taken before the water is drawn. The shader is applied to water texture.
Water is masked using readable depth buffer to make sure that it is drawn properly.
The effect also creates a light sun specular on the water surface.
The position of the highlight changes during the night and day.
Requires GFX to support:
-MRT in shader
-Readable depth buffer
-Shader Model 3.0
Requires client:
-MTA nightly version 1.5.0-9.07307
If your hardware doesn't support the requirements you will be noted in the chatbox.
Note: Antialiasing doesn't work with MRT in shader right now. When experiencing some
odd artifacts or bugs - please post that in the comment section. Also try turning off
antialiasing. Version r7331 fixes the antialiasing issues.
...
(more)
Author: Ren712
REQUIRES MTA 1.5 NIGHTLY - DOWNLOAD HERE http://nightly.mtasa.com
This resource works with (but does not require) shader_dynamic_sky:
https://community.multitheftauto.com/index.php?p=resources..mp;id=6828
This resource's main purpose is to test one of the interesting MTA 1.5 features.
That is - Multiple Render Targets in Shader support. The effect applies a simple
refraction to water. The screensource (on which the refraction reles on)
is taken before the water is drawn. The shader is applied to water texture.
Water is masked using readable depth buffer to make sure that it is drawn properly.
The effect also creates a light sun specular on the water surface.
The position of the highlight changes during the night and day.
Requires GFX to support:
-MRT in shader
-Readable depth buffer
-Shader Model 3.0
Requires client:
-MTA nightly version 1.5.0-9.07307
If your hardware doesn't support the requirements you will be noted in the chatbox.
Note: Antialiasing doesn't work with MRT in shader right now. When experiencing some
odd artifacts or bugs - please post that in the comment section. Also try turning off
antialiasing. Version r7331 fixes the antialiasing issues.
...
(more)
Version history
Version | Publish Date | Changes | |
---|---|---|---|
0.0.8 | 2015-06-26 17:16:16 | -Since MTA 1.4.1 still has some issues (for some graphics cards) regarding MRT in shaders, I've forced client and server version to 1.5.0 | Download |
0.0.7 | 2015-06-25 20:24:16 | -Reconfigured the effect. -Fixed some potential alpha issues (second RT needs first one to be drawn) | Download |
0.0.6 | 2015-06-24 01:06:50 | -Prevent refraction leaking | Download |
0.0.5 | 2015-06-23 11:20:13 | First public release | Download |