Home
Home
Register
Login

Resources
Forum






rssShader Dynamic Lighting (dynamic_lighting)

Category:script
Author:Ren712
Downloads:12795
Rate:You need to be logged in to vote
Rating:3.8 (40 Votes)
Description:
Resource: Dynamic Lighting v1.5.8
video: http://www.youtube.com/watch?v=2t_bje_XjUY
http://www.youtube.com/watch?v=XH5tyQNNsss

wiki: http://wiki.multitheftauto.com/wiki/Resource:Dynamic_lighting
dependent resources:
night mod: https://community.multitheftauto.com/index.php?p=resources..p;id=13740
projectile lighting: http://community.multitheftauto.com/index.php?p=resources&..p;id=11072
vehicle lighting: http://community.multitheftauto.com/index.php?p=resources&..p;id=11071
flashlight: http://community.multitheftauto.com/index.php?p=resources&..mp;id=6858

This resource lets You create dynamic lights in MTA. It gives you a list of exported functions that You can use to create per pixel pointlights, spotlights and a directional vertex light. It should be considered a preview of what MTA:Eir will offer. The Eir solution should be more FPS friendly.I see that resource as an example of what the future holds.

Shader model 3 supports up to 15 lights at once while
Shader model 2 - only one light effect synced.

Check out mta wiki for details:
http://wiki.multitheftauto.com/wiki/Resource:Dynamic_lighting
...

(more)

Comments (17) | Download latest version | Report

Version history

Version Publish Date Changes
1.5.8 2016-06-29 21:41:42 -added dimension and interior flags for create spot/point light
-added setLightInterior, getLightInterior, setLightDimension, getLightDimension exports
Download
1.5.7 2016-04-05 19:04:29 -fixed a typo Download
1.5.6 2016-04-01 00:42:46 -added an option to create vertex lights for a number of enabled lights
-set setForceVertexLight for peds and vehicles to true
-added setVertexLights and setForceVertexLights exported functions
Download
1.5.5 2016-03-21 20:14:48 -reconfigured vehicle effect Download
1.5.3 2015-07-18 22:04:53 -Fixed: setDirLightEnable with no diffuse light crashing the resource. Download
1.5.2 2015-07-13 01:37:44 -fixed a typo Download
1.5.1 2015-03-20 21:07:51 -updated texture list (for new dynamic_sky resource) Download
1.5.0 2015-03-16 23:33:40 -applied setDiffColorRange, setDirColorRange
-applied nightSpot (nightMod required)
-new functions setNightSpotEnable, setNightSpotRadius, setNightSpotPosition
Download
1.4.9 2015-03-14 15:01:01 -applied vehicleEnv texture for non layered vehicle effect
-set gMaxLights to 8 (15 is maximum value)
Download
1.4.8 2015-03-07 06:14:19 -Applied specular light for windsheild (nightMod)
-The vehicle shader effect is applied to windshield (nightMod)
-point, spot, diffuse and directional lighting for vehicle non layered effect are properly colored
Download
1.4.7 2015-03-01 21:35:13 -updated texture list Download
1.4.6 2015-02-28 20:06:42 -added setDiffLightEnable, setDiffLightColor
-recreated specular lighting for vehicles
-minor changes for nightMod options
Download
1.4.4 2014-11-07 02:09:22 -added setNormalShading, getLightDirection, getLightPosition, getLightColor, getLightAttenuation, getLightNormalShading, getLightFalloff, getLightTheta, getLightPhi -directional light code is not applied when the light is not used Download
1.4.3 2014-11-04 15:03:31 -shaders are created only on redefinition
-added setShadersLayered function
Download
1.4.2 2014-11-03 02:41:01 -improved shader performance
-dropped the setNormalShadowingAmount function
Download
1.4.1 2014-10-29 00:14:17 - fixed a typo Download
1.4.0 2014-10-25 00:18:33 -Improved light sorting Download
1.3.9 2014-10-19 00:19:00 -id recycling -changes in debug code Download
1.3.8 2014-09-24 21:36:36 -updated MTACalcGTACompleteDiffuse Download
1.3.7 2014-08-16 11:30:51 -the directional light settings are now properly applied when the shaders are off.(Forcing the effects on or using any other lights is still required for directional light to work) Download
1.3.6 2014-08-15 18:42:43 -added a per vertex directional light.
-divided effect files for different shader models.
Download
1.3.5 2014-07-07 21:52:14 -gWorldNormalShading option is now applied before the world effect is compiled
-added setWorldNormalShading and setMaxLights exported functions
Download
1.3.4 2014-07-02 23:36:28 -reversed back to 1.3.2 Download
1.3.3 2014-07-02 23:06:52 -applied an experimental function createCubeLight (for fog creation) Download
1.3.2 2014-07-02 17:21:49 -reconfigured setShaderNightMod, added setShaderPedDiffuse Download
1.3.1 2014-07-02 02:20:21 -fixed a typo Download
1.3.0 2014-07-02 02:01:19 -applied setShaderDayTime and setShaderNightMod functions ( more info soon) Download
1.2.9 2014-06-20 11:54:15 -added setTextureBrightness, setLightsDistFade, setLightsEffectRange Download
1.2.8 2014-06-17 20:34:56 -added setGenerateBumpNormals function Download
1.2.7 2014-06-16 01:11:36 -Fixed output light sorting issue Download
1.2.6 2014-06-14 22:11:21 -Alpha fix (for some transparent objects) Download
1.2.4 2014-06-09 16:54:23 First public release Download