Safe Haskell | Safe-Inferred |
---|
PhotonMap
Synopsis
- createPhoton :: Float -> DList Foton -> Int -> Int -> Set Shape -> [Luz] -> StdGen -> Int -> DList Foton
- selescLightSource :: [Luz] -> Int -> Int -> StdGen -> (Ray, Luz)
- traceRay :: Point3D -> Float -> RGB -> DList Foton -> Set Shape -> Int -> StdGen -> Obj -> DList Foton
- estDensPhoton :: [Foton] -> Obj -> Set Shape -> Float -> RGB
- photonMap :: KdTree Float Foton -> [Luz] -> Float -> Set Shape -> Obj -> RGB
- kdToRGB :: KdTree Float Foton -> Float -> Set Shape -> Obj -> RGB
Documentation
createPhoton :: Float -> DList Foton -> Int -> Int -> Set Shape -> [Luz] -> StdGen -> Int -> DList Foton Source #
Función básica, genera una lista de fotones lanzados desde diferentes luces.
selescLightSource :: [Luz] -> Int -> Int -> StdGen -> (Ray, Luz) Source #
Función auxiliar que selecciona la luz de la que se va a lanzar el fotón.
traceRay :: Point3D -> Float -> RGB -> DList Foton -> Set Shape -> Int -> StdGen -> Obj -> DList Foton Source #
Función auxiliar que calcula y almacena el recorrido de un fotón por la escena.
estDensPhoton :: [Foton] -> Obj -> Set Shape -> Float -> RGB Source #
Función auxiliar que estima la densidad de fotones en un punto.