Home
Home
Register
Login

Resources
Forum






rssmaterial3DLightBasic (material3dlightbasic)

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

This resource adds an ability to create basic 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 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 - Same as above but no normal shading
CMatLightSpot - Creates a spot light.
CMatLightSpotNoNRM - Same as above but no normal shading
CMatLightSpecular - Creates a specular light.
CmatLightDark - Creates an inverted color point light
CmatLightDarkNoNRM - Same as above but no normal shading
CMaterial3D_projectedTexture - Creates a projected 2D texture
CMaterial3D_projectedTextureNoDB - Creates a projected 2D texture (basic method)
CMaterial3D_projectedTextureNoNRM - Same as above but no normal shading
CMaterial3D_projectedTextureCube - Creates a projected cube texture
CMaterial3D_projectedTextureCubeNoNRM - Creates a projected cube texture

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.8 2017-10-15 20:41:02 -removed CMatTextureProjDark and CMatTextureProjDarkNoNRM -added CMatTextureProjNoDB (standard fallback for CMatTextureProj*) -fixed error when AutoProjectionEnabled (in CMatTextureProj*) Download
0.0.7 2017-10-09 22:11:40 -added CMatTextureProjDark and CMatTextureProjDarkNoNRM Download
0.0.6 2017-09-27 23:06:02 -added CMatLightSpecular Download
0.0.5 2017-09-26 17:21:10 -enabled normal shading to CMatTextureProj
-added CMatTextureProjNoNRM, CMatTextureProjCubeNoNRM
Download
0.0.4 2017-09-26 16:47:06 -added setRotation method for CMatLightSpot
-added setSurfaceOffset method for CMatTextureProj
-in CMatTextureProj renamed method setAutoProjectionPosition to setAutoProjectionEnabled
-in CMatTextureProj renamed method setAutoProjectionPositionSearchLength to setAutoProjectionSearchLength
-fixed some minor typos
Download
0.0.3 2017-09-25 23:19:37 -added CMatLightDark (self shading), CMaterial3D_projectedTexture, CMaterial3D_projectedTextureCube
-added some methods for Matrix class (for ZXY rotation handling)
Download
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