smooth + mixmat bug fix

This commit is contained in:
Crizomb 2025-09-26 23:23:52 +02:00
parent 60730edb7b
commit e35cca1830
3 changed files with 20 additions and 16 deletions

View file

@ -13,15 +13,17 @@ import (
const MAX_DIST = 1000.0
const MAX_STEP = 1000
const EPS = 0.01
const WIDTH = 500
const HEIGHT = 500
const WIDTH = 250
const HEIGHT = 250
const PI = math.Pi
var lightPos Vector3 = Vector3{0, -200, 600}
var sphere Sphere = Sphere{Vector3{0, 100, 10}, 10, RED_MAT}
var plane Plane = Plane{Vector3{0, 0, 1}, -10, GRID_OF_GRID_MAT}
var scene UnionSDF = UnionSDF{sphere, plane}
var sphere Sphere = Sphere{Vector3{0, 100, 5}, 10, RED_MAT}
var plane Plane = Plane{Vector3{0, 0, 1}, 0, WHITE_GREY_GRID_MAT}
var scene SmoothUnionSDF = SmoothUnionSDF{sphere, plane, 3.5}
// var scene UnionSDF = UnionSDF{sphere, plane}
var cameraPos Vector3 = Vector3{0, -10, 30}
// radius, theta, phi