ScratchData LogoScratchData
Back to Scratchycat123's profile

Dynamic Lighting Test v1.0

SCScratchycat123•Created September 6, 2014
Dynamic Lighting Test v1.0
1
1
119 views
View on Scratch

Instructions

This is a set of scripts I made to test dynamic lighting, as you might see in most video games. Dynamic lighting makes it so that shadows are made properly based on the position of the light source, and makes shadows look more realistic. Mess with the sliders however you want. Recommended settings: -Light spread will result in weirder shadows if set at max, unless you have the maximum "light amount", though having both may cause lag. I recommend 150 light spread and about 250 light amount. -Maximum light speed will render faster, but will have strangely long shadows. -Higher "light amount" will result in cleaner shadows, but may render slower. -High shininess looks really weird. I recommend not using it at all until it's improved. -Higher shadow thickness looks sometimes cleaner, sometimes messier. I recommend about 5-8. -Lower light update will render faster, but looks annoying sometimes.

Description

All this was made from scratch by me. If you want to use this in a project, please ask me first. I don't recommend it anyway, this is really just an experiment thing. V1.0: Bugs: -Shinyness is a bit weird. -"Show Variables" doesn't hide all variables when at 0. -"Show Variables" has a timer so that it doesn't constanty update (which would lag a lot). It has a delay of 5 seconds or less. -Higher "light speed" has long shadows.

Project Details

Project ID26327019
CreatedSeptember 6, 2014
Last ModifiedOctober 25, 2014
SharedSeptember 6, 2014
Visibilityvisible
CommentsAllowed