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

rssprimitive3DLightBasic (primitive3dlightbasic)

Category:script
Author(s):Ren712
Downloads:372
Rate:You need to be logged in to vote
Rating:5 (2 Votes)
Description:
Resource: primitive3DLightBasic v0.1.8
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
CPrmTextureProj2 - Creates a projected 2D texture type2
CPrmTextureProjNoDB - Creates a projected 2D texture (basic method)
CPrmTextureProjNoNRM - Same as above but no normal shading
CPrmTextureProjCone - Creates a projected 2D texture (perspective projection)
CPrmTextureProjCone2 - Creates a projected 2D texture type2 (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.8 2021-02-09 23:12:15 -added light clearing option
-fixed a spotlight bug introduced in the last version
Download
0.1.7 2021-01-26 07:33:45 -changed depth bias for billboards Download
0.1.6 2020-04-22 22:11:21 -fixed a critical typo introduced in the last version Download
0.1.5 2020-04-20 22:24:34 -added off-screen light culling
-using primitive objects (sphere, cone, box) for lighting
-added projectedTexture2, projectedTextureCone2 effects
-changed fading method a bit
Download
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