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

rssimage3DLightBasic (image3dlightbasic)

Category:script
Author(s):Ren712
Downloads:498
Rate:You need to be logged in to vote
Rating:5 (9 Votes)
Description:
Resource: image3DLight Basic v0.1.6
Author: Ren712

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 and tessellated image2material3D).
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:
CImgLightDirectional - Creates a global directional light
CImgLightPoint - Creates a point light.
CImgLightPointNoNRM - Same as above but no normal shading
CImgLightSpot - Creates a spot light.
CImgLightSpotNoNRM - Same as above but no normal shading
CImgLightSpecular - Creates a specular light.
CImgLightDark - Creates an inverted color point light
CImgLightDarkNoNRM - Same as above but no normal shading
CImgTexture - Creates a 2D quad
CImgTextureNoDB - Creates a 2D quad (basic method)
CImgTextureProj - Creates a projected 2D texture
CImgTextureProj2 - Creates a projected 2D texture type2
CImgTextureProjNoDB - Creates a projected 2D texture (basic method)
CImgTextureProjNoNRM - Same as above but no normal shading
CImgTextureProjCone - Creates a projected 2D texture (perspective projection)
CImgTextureProjCone2 - Creates a projected 2D texture type2(perspective projection)
CImgTextureProjConeNoDB - Creates a projected 2D texture (basic method)
CImgTextureProjConeNoNRM - Same as above but no normal shading
CImgTextureProjCube - Creates a projected cube texture
CImgTextureProjCubeNoNRM - Creates a projected cube texture

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

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

Download latest version | Report

Version history

Version Publish Date Changes
0.1.6 2021-02-09 23:10:58 -added light clearing option
-fixed a spotlight bug introduced in the last version
Download
0.1.5 2021-01-26 07:35:14 -changed depth bias for billboards Download
0.1.4 2020-04-20 22:20:16 -added off-screen light culling
-added projectedTexture2, projectedTextureCone2 effects
-fixed switching zEnable for lights
-cleaned up some needless lua code
-changed fading method a bit
Download
0.1.3 2020-02-19 17:42:55 -optimized effects a bit Download
0.1.2 2020-02-01 23:44:04 -added depth buffer fix (for image3DTexture) Download
0.1.1 2020-01-21 17:13:22 -fixed some depth buffer related issues Download
0.1.0 2019-04-01 22:29:38 -readjusted the projective texture coordinates Download
0.0.9 2019-03-10 22:37:50 -simplified the lod/detail method Download
0.0.8 2018-05-08 21:03:20 -added CImgLightDirectional Download
0.0.7 2018-04-07 20:47:33 -limiting worldPos calculations to space within light radius Download
0.0.6 2018-03-27 21:32:43 -added CImgTexture, CImgTextureNoDB Download
0.0.5 2018-03-04 21:06:27 -new sphere/cone shapes for near/small light sources
-changing between sphere/cone shape and a billboard based on distance from camera and light attenuation
-new methods: setTesselationTestAngle, setTesselationSwitchDistance, setObjectTesselation
Download
0.0.4 2017-10-20 20:05:07 -added CImgTextureProjCone, CImgTextureProjConeNoDB, CImgTextureProjConeNoNRM Download
0.0.3 2017-10-15 20:44:28 First public release Download