Home
Home
Register
Login

Resources
Forum






rssprimitive3DLightBasic (primitive3dlightbasic)

Category:script
Author(s):Ren712
Downloads:97
Rate:You need to be logged in to vote
Rating:5 (1 Vote)
Description:
Resource: primitive3DLightBasic v0.1.4
Author: Ren712

Description:
This resource adds an ability to create simple light sources.
The purpose of this resource is to give an efficient alternative to
dynamic lighting resource and prepare for new deferred rendering
approach. Instead of applying shaders to world textures, I have decided
to recreate needed information from scene depth to apply effect post world
(drawn on transformed dxDrawMaterialPrimitive3D). You can add virtually
limitless number of lights. In order to work the effects
require shader model 3 GFX with readable depth buffer support.

Effects:
CPrmLightDirectional - Creates a global directional light
CPrmLightPoint - Creates a point light.
CPrmLightPointNoNRM - Same as above but no normal shading
CPrmLightSpot - Creates a spot light.
CPrmLightSpotNoNRM - Same as above but no normal shading
CPrmLightSpecular - Creates a specular light.
CPrmLightDark - Creates an inverted color point light
CPrmLightDarkNoNRM - Same as above but no normal shading
CPrmTexture - Creates a 2D quad
CPrmTextureNoDB - Creates a 2D quad (basic method)
CPrmTextureProj - Creates a projected 2D texture
CPrmTextureProjNoDB - Creates a projected 2D texture (basic method)
CPrmTextureProjNoNRM - Same as above but no normal shading
CPrmTextureProjCone - Creates a projected 2D texture (perspective projection)
CPrmTextureProjConeNoDB - Creates a projected 2D texture (basic method)
CPrmTextureProjConeNoNRM - Same as above but no normal shading
CPrmTextureProjCube - Creates a projected cube texture
CPrmTextureProjCubeNoNRM - Same as above but no normal shading

Requirements:
Shader model 3.0 GFX, readable depth buffer in PS access.

test.lua lets you create lights in front of the camera view.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
0.1.4 2020-02-01 23:32:59 -optimized drawing light entities Download
0.1.3 2020-01-23 18:51:37 -added depth buffer fix (for gtasa effects and material line) -cleaned up some remaining image2material3D code. Download
0.1.2 2020-01-21 22:17:04 -set proper min. client version Download
0.1.1 2020-01-21 17:19:27 First public release Download