bugfix: width und heigth waren bei axampleSphere vertaucht. jetzt sieht man eine rote kugel
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ void example_color(int width, int height, int channels, unsigned char *image) {
|
||||
}
|
||||
}
|
||||
|
||||
void exampleSphere(int height, int width, int channels, unsigned char *image) {
|
||||
void exampleSphere( int width, int height, int channels, unsigned char *image) {
|
||||
camera cam1;
|
||||
cam1.origin.x = 0;
|
||||
cam1.origin.y = 0;
|
||||
@@ -36,7 +36,7 @@ void exampleSphere(int height, int width, int channels, unsigned char *image) {
|
||||
cam1.width = 1.920;
|
||||
cam1.height = 1.080;
|
||||
vec3 sphereOrigin = (vec3){0,0,5};
|
||||
double sphereRadius = 1.0;
|
||||
double sphereRadius = 2.0;
|
||||
sphere obj = (sphere){sphereOrigin, sphereRadius};
|
||||
|
||||
vec3 worldUp = (vec3){0, 1, 0};
|
||||
|
||||
Reference in New Issue
Block a user