Description
USE TURBOWARP: https://turbowarp.org/868607896 All my code. The example render took about 10 minutes on TurboWarp with a resolution of 0.25 and 1 ray per pixel for a lot of frames Includes specular reflection, refraction, lighting (objects can emit light), fresnel reflection (objects are more reflective when you view them edge on), diffuse reflection (works in combination with specular reflection), transmission (transparent objects let some light through and some reflects away), specular highlights, diffuse transmission (like in frosted glass) and depth of field (the distance where the image is clearest) Most of the algorithm I learnt from Sebastian Lague's Ray Tracing video: https://www.youtube.com/watch?v=Qz0KTGYJtUk Fresnel from: https://blog.demofox.org/2017/01/09/raytracing-reflection-refraction-fresnel-total-internal-reflection-and-beers-law/ Refraction from: https://samdriver.xyz/article/refraction-sphere and: https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.1.20.pdf on page 66
Instructions
USE TURBOWARP: https://turbowarp.org/868607896 This contains flashing images 'V' to show/hide variables Res is the resolution (smaller Res = higher resolution) DirX and DirY are the directions of the camera CamX, CamY, and CamZ are the coordinates of the camera RaysPerPixel is the number of rays sent out per pixel per frame (higher value = more realistic but slower) DOF is the depth of field (the distance that has a sharp image, but everywhere else is blurrier) LightX, LightY, and Light Z are the directions of the light
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
-

LOUD SOUNDS KEYBOARD (Remix 39/100)
by TedoandKeti
-

Beat up Cubesgreenking! 2024
by Olek32167xv
-

Endless Arabic Animations
by himhimyt2024
-

beat up ganymede (1.1) remix remix remix
by Jageroo
-

Tiny Pop Pack (2007-2009)
by jdw8
-

Bloons Tower Defense 4.
by memisterlc
-

PBS KIDS System Cue: Apples but Dee crying
by NumberblockFaner303
-

(70%新規製作!)小田急8000系
by kuha155
-

goofy ahh sound effects
by EZRA_2015smellsdogs
-

すごいたたかい 銃撃戦Online
by pafeiwasi
-

Incredibox - Discovery (Demo)
by alexanderba2013
-

Tutorial De Como Cambiarse El Fondo De Pantalla En Windows 11
by Pa_Os_Coding
-

Slime Ninja
by DarkLava
-

Adventures in Bayclan
by Wildflight
-

(NEW CHARACTER) 少し爆撃機 (Little Bomber) V.1.88
by kyleandreigames
-

Beat up Gobo-A 2
by deadlyforest
-

FNF - FIRE IN THE HOLE: Lobotomy Funkin'
by chucky_lee
-

The Ninja 5 Extreme! remix
by Goyal_Yash
-

Final Mirror Maze KyleW 8DT
by wmskylew
-

Numberblocks Band Retro 221-230 (Each Sound)
by Trioctoblock24
-

(FNAEAF) Five Nights at Elmo and Friends
by MockeyRat777
-

| 777 Intro Template |
by AXTUKUN
-

New Super Mario bros™️. U Deluxeタボ対有
by BECONON
-

New Buttons
by Kaizo_Kolors3333