ScratchData LogoScratchData
Back to cabalex's profile

Rendering Lighting

CAcabalex•Created April 15, 2019
Rendering Lighting
89
68
1955 views
View on Scratch

Instructions

IMPORTANT! RUN IN TURBO MODE [SPACE] Refresh [UP ARROW] Hide UI (screenshots) [DOWN ARROW] Show UI [LEFT ARROW] Turn off screen refreshing - Faster, but makes the whole tab lag (THIS OPTION IS DISABLED FOR 40x, 20x, and 10x). [RIGHT ARROW] Turn on screen refreshing - Takes longer in general, but is less taxing on your browser and your CPU Changing screen refresh options require a rerender

Description

Update: Did not expect this to blow up as much as it has! Thanks :) Working light rendering. Very basic for now. I originally had two light sources, but I couldn't figure out how to add them properly so that the lights wouldn't change brightness from different distances. LIGHT SOURCE (L): Where the light comes from. BLACK HOLE (BH): Where the light gets sucked into. I think it looks pretty cool in some places. 40x Render - Renders at 12x9. Used for quick previews. 20x Render - Renders at 24x18. 10x Render - Renders at 48x36. 5x Render - Renders at 96x72. 2x Render - Renders at 240x180. Full - Renders at the full Scratch resolution of 480x360. Light Strength - Lower = smaller light source, Higher = larger light source Color - Changes the color value near the edges (not really viewable though). Leave 0 for black. 1.0 - release 1.1 - added screen refresh options (thanks @redstonelasher2010) 1.2 - tweaked screen refresh options for better previews 1.3 - added turbo mode prompt (sorry mobile users) 1.4 - made previews smoother by only rendering 40x (screen refresh true only)

Project Details

Project ID302610840
CreatedApril 15, 2019
Last ModifiedJuly 1, 2019
SharedApril 16, 2019
Visibilityvisible
CommentsAllowed