versuch reflexionen einzubauen. man sieht sie zwar, aber der rest ist auch noch beleuchtet
This commit is contained in:
+2
-2
@@ -84,8 +84,8 @@ void exampleSphere( int width, int height, int channels, unsigned char *image) {
|
||||
free(lightRay);
|
||||
|
||||
image[step] = (int)(pixelColor.r * 255.0);
|
||||
image[step+1] = 0;
|
||||
image[step+2] = 0;
|
||||
image[step+1] = (int)(pixelColor.g * 255.0);
|
||||
image[step+2] = (int)(pixelColor.b * 255.0);
|
||||
if (channels == 4) {
|
||||
image[step+3] = 255;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user