/LightSimulator

2D Light path tracer

Primary LanguageC++

LightSimulator

2D light raymarcher.

Commands

o<filename> Opens the room .json file

r Reloads open file

q Exits

p<amount> Simulates an amount of photons

*<number> Sets the number of pixels per room unit. Must be greather than zero.

m<multiplier> Sets the intensity multiplier. Must be greather than zero. Execute without arguments to get current value.

c<path> Sets the current working directory. Execute without arguments to get current value.

s<path> Saves the image to a png file. Path must include .png

explorer Opens the cwd in explorer

Examples

roomColorH obstacle2 dashes2