Home
Home
Register
Login

Resources
Forum






rssmaterial3DLightBasic (material3dlightbasic)

Category:script
Author:Ren712
Downloads:270
Rate:You need to be logged in to vote
Rating:3.9 (7 Votes)
Description:
Resource: material3DLight Basic v0.0.2
Author: Ren712

This resource adds an ability to create basic point and spot lights
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 materialLine3D billboard). 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:
CMatLightPoint - Creates a point light.
CMatLightPointNoNRM - As above but normals are not generated
CMatLightSpot - Creates a spot light.
CMatLightSpotNoNRM - As above but normals are not generated
CmatLightDark - Creates an inverted color point light (no normals)

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

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

(more)

Comments (4) | Download latest version | Report

Version history

Version Publish Date Changes
0.0.2 2017-03-12 02:36:02 -normal generator takes current field of view and screen proportions into account Download
0.0.1 2017-03-10 00:43:39 First public release Download