light2d icon indicating copy to clipboard operation
light2d copied to clipboard

Light rendering in 2D

Results 4 light2d issues
Sort by recently updated
recently updated
newest added

There's a major but common mistake which makes all the images look wrong. The images are naturally calculated using linear light values but saved as 8-bit sRGB values without any...

在[Manjaro](https://en.wikipedia.org/wiki/Manjaro_Linux)上会报错: [wurui@computer light2d]$ make cc basic.c -o basic /tmp/ccb1Fj9Q.o:在函数‘circleSDF’中: basic.c:(.text+0x104e):对‘sqrtf’未定义的引用 /tmp/ccb1Fj9Q.o:在函数‘sample’中: basic.c:(.text+0x1189):对‘sinf’未定义的引用 basic.c:(.text+0x119e):对‘cosf’未定义的引用 /tmp/ccb1Fj9Q.o:在函数‘main’中: basic.c:(.text+0x1264):对‘fminf’未定义的引用 collect2: 错误:ld 返回 1 make: *** [:basic] 错误 1 必须要改成这样,才能正常工作: TARGETS=basic csg OUTPUTS=$(addsuffix .png, $(TARGETS))...