rssmaterial3DFog (material3dfog)
Category: | script |
---|---|
Author(s): | Ren712 |
Downloads: | 421 |
Rate: | You need to be logged in to vote |
Rating: | 5 (3 Votes) |
Description:
Resource: material3DFog v0.1.7
Author: Ren712
This resource adds an ability to create volumetric fog. Type of
what you could see in quake live. You can set fade start, end,
fog box rotation, size, position, color. There are currently four
classes available.
Effects:
fogVolume1DirLin3D - Creates a directional linear fog
the fog fades in gradually from top to bottom.
fogVolume1DirLinTex3D - Same as above plus adds animated
fog texture at the top of the fog box
fogVolume1DirExp3D - Creates a directional exponential fog
the fog fades in gradually from top to bottom.
fogVolume1DirExpTex3D - Same as above plus adds animated
fog texture at the top of the fog box
fogVolumeObjLin3D - Creates volumetric linear fog limited to
a shape of a given object, It's a 3 step effect uses 2 RT
and 2 shaders. You can apply pretty much any object element.
there are 3 example objects in /obj directory.
fogVolumeObjExp3D - Creates volumetric exponential fog limited to
a shape of a given object, It's a 3 step effect uses 2 RT
and 2 shaders. You can apply pretty much any object element.
there are 3 example objects in /obj directory.
Requirements:
Shader model 3.0 GFX, readable depth buffer in PS access.
fogVolumeObjLin3D and fogVolumeObjExp3D uses MRT in PS.
test.lua creates a fog box and fog sphere in army base...
(more)
Author: Ren712
This resource adds an ability to create volumetric fog. Type of
what you could see in quake live. You can set fade start, end,
fog box rotation, size, position, color. There are currently four
classes available.
Effects:
fogVolume1DirLin3D - Creates a directional linear fog
the fog fades in gradually from top to bottom.
fogVolume1DirLinTex3D - Same as above plus adds animated
fog texture at the top of the fog box
fogVolume1DirExp3D - Creates a directional exponential fog
the fog fades in gradually from top to bottom.
fogVolume1DirExpTex3D - Same as above plus adds animated
fog texture at the top of the fog box
fogVolumeObjLin3D - Creates volumetric linear fog limited to
a shape of a given object, It's a 3 step effect uses 2 RT
and 2 shaders. You can apply pretty much any object element.
there are 3 example objects in /obj directory.
fogVolumeObjExp3D - Creates volumetric exponential fog limited to
a shape of a given object, It's a 3 step effect uses 2 RT
and 2 shaders. You can apply pretty much any object element.
there are 3 example objects in /obj directory.
Requirements:
Shader model 3.0 GFX, readable depth buffer in PS access.
fogVolumeObjLin3D and fogVolumeObjExp3D uses MRT in PS.
test.lua creates a fog box and fog sphere in army base...
(more)
Version history
Version | Publish Date | Changes | |
---|---|---|---|
0.1.7 | 2020-01-11 21:51:43 | -fixed some depth buffer related issues | Download |
0.1.6 | 2019-04-01 22:26:13 | -readjusted the projective texture coordinates | Download |
0.1.5 | 2017-10-26 20:02:12 | -disabled alphaTesting for fogVolumeObj object -added texture displacement for fogVolume..Tex3D |
Download |
0.1.4 | 2017-10-06 10:36:45 | -added some methods for Matrix class (for ZXY rotation handling) -changed matrix calculations for fogVolumeObj | Download |
0.1.3 | 2017-03-07 05:57:40 | -minor optimization for fogbox drawing | Download |
0.1.2 | 2017-03-01 20:26:41 | -written some description for lua files | Download |
0.1.1 | 2017-03-01 19:15:10 | -added setDistFade method to obj effects -adjusted fading to match far clip distance (if distFade.x < farClip) -separate vertex shaders for fallback effects |
Download |
0.1.0 | 2017-03-01 14:04:27 | -fixed fogbox affecting world outside boundaries (thanks to Tourettes for bug report) -added setDistFade method for fogBox lin/exp effects. -set some render states for obj effects (for some unlikely exceptions) |
Download |
0.0.9 | 2017-02-27 15:20:16 | -added setObjectMorfSize method for fogVolumeObjLin3D and fogVolumeObjExp3D | Download |
0.0.8 | 2017-02-26 02:30:47 | -fogVolumeObjExp3D and fogVolumeObjLin3D share the same render targets (c_common.lua) | Download |
0.0.7 | 2017-02-25 23:38:15 | -fixed texture plane in fogVolume1DirExpTex3D not being culled properly (Thanks to AfterAll14 for testing) -added fogVolumeObjLinB3D and fogVolumeObjExp3D volumetric fog for object shaped fog. |
Download |
0.0.6 | 2017-01-20 21:56:44 | -optimized some effects -fixed typos in fog and texture planes for exp fog introduced in 0.0.5 -changed texture and fog plane rendering order to prevent potential visual issues |
Download |
0.0.5 | 2017-01-20 02:04:31 | -added fogVolume1DirExpTex3D class -added a third fogFade variable (for linear fog inside fogbox) -changed how fog texture fades out -classes don't share effects now -gtasa fog is gradually committed when camera is inside fogbox -added a fog surface for gtasa fog inside fogbox -forcing FOGENABLE due to some gtasa issues when sun corona is visible -exported some variables, sent some calculations from PS to VS |
Download |
0.0.4 | 2017-01-05 14:56:11 | - added collectgarbage("setpause",100) due to mta oop issues | Download |
0.0.3 | 2017-01-03 01:34:48 | -added CMatFogVol1DirExp3D (exponential fog) | Download |
0.0.2 | 2017-01-01 23:59:21 | -added fogVolume1DirTex3D class -disregarding fFogParam.x when camera is inside the fogbox | Download |
0.0.1 | 2016-12-28 09:29:04 | First public release | Download |