MCPcopy Create free account

hub / github.com/Twinklebear/tray_rust / functions

Functions483 in github.com/Twinklebear/tray_rust

↓ 2 callersMethodoccluded
Perform the occlusion test in the scene
src/light/mod.rs:30
↓ 2 callersFunctionpart1_by1
! Provides utilities for 2D Morton code generation using Fabian Giesen's Morton ! code decoding functions, see [his post on Morton codes](https://fgie
src/sampler/morton.rs:5
↓ 2 callersFunctionpartition
Re-orders elements in the range yielded by `it` based on `pred`. All elements that the predicate returns true for will be placed before all elements t
src/partition.rs:9
↓ 2 callersMethodpoint
Create a point light at the origin that is transformed by `transform` to its location in the world
src/geometry/emitter.rs:109
↓ 2 callersFunctionpower_heuristic
Power heuristic for multiple importance sampling for two functions being sampled, f & g where beta is hard-coded to be two following PBR & Veach - `n_
src/mc.rs:56
↓ 2 callersMethodrebuild
Re-build the BVH for the time range passed
src/geometry/bvh.rs:61
↓ 2 callersFunctionrefract
Compute the refraction of `w` entering surface with normal `n` where `eta` is the refractive index of the incident material divided by that of the exi
src/linalg/mod.rs:117
↓ 2 callersMethodrender
(&mut self, scene: &mut Scene, rt: &mut RenderTarget, config: &Config)
src/exec/multithreaded.rs:55
↓ 2 callersFunctionsample_1d
Generate a 1D pattern of low discrepancy samples to fill the slice sample values will be normalized between [0, 1]
src/sampler/ld.rs:85
↓ 2 callersFunctionsample_2d
Generate a 2D pattern of low discrepancy samples to fill the slice sample values will be normalized between [0, 1]
src/sampler/ld.rs:78
↓ 2 callersMethodsample_incident
(&self, p: &Point, samples: &(f32, f32), time: f32)
src/geometry/emitter.rs:165
↓ 2 callersMethodshadowing_masking
(&self, w_i: &Vector, w_o: &Vector, w_h: &Vector)
src/bxdf/microfacet/ggx.rs:47
↓ 2 callersFunctionspherical_dir
Compute the direction specified by `theta` and `phi` in the spherical coordinate system
src/linalg/mod.rs:55
↓ 2 callersFunctionspherical_theta
Compute the value of theta for the vector in the spherical coordinate system
src/linalg/mod.rs:66
↓ 2 callersMethodto_matrix
Get the rotation transform described by this quaternion
src/linalg/quaternion.rs:65
↓ 2 callersMethodto_srgb
Convert the linear RGB color to sRGB
src/film/color.rs:59
↓ 2 callersMethodtransform
Compute the transformation matrix for the animation at some time point using B-Spline interpolation.
src/linalg/animated_transform.rs:40
↓ 2 callersFunctionvan_der_corput
Generate a scrambled Van der Corput sequence value as described by Kollig & Keller (2002) and in PBR method is specialized for base 2
src/sampler/ld.rs:97
↓ 2 callersMethodweight_1d
Compute a 1d weight for the filter. Note that the Mitchell-Netravali filter is defined on [-2, 2] so x should be in this range
src/film/filter/mitchell_netravali.rs:35
↓ 2 callersMethodweight_1d
(&self, x: f32, e: f32)
src/film/filter/gaussian.rs:27
↓ 1 callersMethodactive_camera
Get the active camera for the current frame
src/scene.rs:178
↓ 1 callersMethodadd_blocks
Add the blocks of RGBAf32 pixels to the image. It's assumed that the block information passed is equivalent to that returned by RenderTarget::get_bloc
src/film/image.rs:36
↓ 1 callersFunctionconductor
Compute the Fresnel term for a conductor given the incident angle and the material properties
src/bxdf/fresnel.rs:16
↓ 1 callersFunctioncos_sample_hemisphere
Sample a hemisphere using a cosine distribution to produce cosine weighted samples `samples` should be two random samples in range [0, 1) directions r
src/mc.rs:11
↓ 1 callersFunctiondielectric
Compute the Fresnel term for a dielectric material given the incident and transmission angles and refractive indices
src/bxdf/fresnel.rs:10
↓ 1 callersMethodestimate_direct
Estimate the direct light contribution to the surface being shaded by the light using multiple importance sampling - `w_o` outgoing direction of the
src/integrator/mod.rs:122
↓ 1 callersMethodeval
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/torrance_sparrow.rs:40
↓ 1 callersMethodeval
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/microfacet_transmission.rs:65
↓ 1 callersMethodface_forward
Return a normal facing along the same direction as v
src/linalg/normal.rs:38
↓ 1 callersMethodfast_intersect
Optimized ray-box intersection test, for use in the BVH traversal where we have pre-computed the ray's inverse direction and which directions are nega
src/geometry/bbox.rs:75
↓ 1 callersMethodfrom_shading
Transform the vectro from shading space to world space
src/bxdf/bsdf.rs:57
↓ 1 callersMethodget_color
(&self, x: u32, y: u32)
src/texture/image.rs:23
↓ 1 callersMethodget_float
(&self, x: u32, y: u32)
src/texture/image.rs:17
↓ 1 callersFunctionget_instructions
()
src/exec/distrib/worker.rs:59
↓ 1 callersMethodget_rendered_blocks
Get the blocks that have had pixels written too them. Returns the size of each block, a list of block positions in pixels and then pixels for the bloc
src/film/render_target.rs:215
↓ 1 callersMethodget_samples_2d
(&mut self, samples: &mut [(f32, f32)], rng: &mut StdRng)
src/sampler/adaptive.rs:107
↓ 1 callersMethodget_srgb8
Convert the Image to sRGB8 format and return it
src/film/image.rs:52
↓ 1 callersMethodget_transform
Get the transform to place the emitter into world space
src/geometry/emitter.rs:144
↓ 1 callersMethodhas_samples
(&self)
src/sampler/uniform.rs:47
↓ 1 callersMethodhas_samples
(&self)
src/sampler/adaptive.rs:119
↓ 1 callersMethodintersect
(&self, ray: &mut Ray)
src/geometry/disk.rs:42
↓ 1 callersMethodintersect
(&self, ray: &mut Ray)
src/geometry/rectangle.rs:38
↓ 1 callersMethodintersect
(&self, ray: &mut Ray)
src/geometry/sphere.rs:33
↓ 1 callersMethodinv_height
(&self)
src/film/filter/gaussian.rs:39
↓ 1 callersMethodinv_width
(&self)
src/film/filter/gaussian.rs:37
↓ 1 callersMethodis_animated
Check if the transform is actually animated
src/linalg/animated_transform.rs:73
↓ 1 callersMethodlength
Compute the length of the vector
src/linalg/vector.rs:28
↓ 1 callersMethodlength_sqr
Compute the squared length of the vector
src/linalg/vector.rs:24
↓ 1 callersMethodlerp
Compute the point in the box at some t value along each axis
src/geometry/bbox.rs:58
↓ 1 callersFunctionload_animated_color
Load an animated color from the JSON element passed. Returns None if the element did not contain a valid color
src/scene.rs:722
↓ 1 callersFunctionload_camera
Load the camera described by the JSON value passed. Returns the camera along with the number of samples to take per pixel and the scene dimensions. Pa
src/scene.rs:251
↓ 1 callersFunctionload_cameras
Load the cameras or single camera specified for this scene
src/scene.rs:231
↓ 1 callersFunctionload_film
Load the film described by the JSON value passed. Returns the render target along with the image dimensions and samples per pixel
src/scene.rs:185
↓ 1 callersFunctionload_filter
Load the reconstruction filter described by the JSON value passed
src/scene.rs:208
↓ 1 callersFunctionload_geometry
Load the geometry specified by the JSON value. Will re-use any already loaded meshes and will place newly loaded meshees in the mesh cache.
src/scene.rs:584
↓ 1 callersFunctionload_integrator
Load the integrator described by the JSON value passed. Return the integrator or panics if it's incorrectly specified
src/scene.rs:297
↓ 1 callersFunctionload_materials
Load the array of materials used in the scene, panics if a material is specified incorrectly. The path to the directory containing the scene file is r
src/scene.rs:404
↓ 1 callersFunctionload_objects
Loads the array of objects in the scene, assigning them materials from the materials map. Will panic if an incorrectly specified object is found.
src/scene.rs:515
↓ 1 callersFunctionload_sampleable_geometry
Load the sampleable geometry specified by the JSON value. Will panic if the geometry specified is not sampleable.
src/scene.rs:632
↓ 1 callersFunctionload_textures
(path: &Path, elem: &Value)
src/scene.rs:317
↓ 1 callersFunctionmaster_node
(args: Args)
src/main.rs:111
↓ 1 callersMethodmatching_at
Get the `i`th BxDF that matches the flags passed. There should not be fewer than i BxDFs that match the flags
src/bxdf/bsdf.rs:128
↓ 1 callersMethodmax_extent
Compute the axis along which the box is longest
src/geometry/bbox.rs:47
↓ 1 callersMethodneeds_supersampling
Determine if more samples need to be taken for the pixel currently sampled with the set of samples passed. This is done by simply looking at the contr
src/sampler/adaptive.rs:54
↓ 1 callersMethodnormal_distribution
(&self, w_h: &Vector)
src/bxdf/microfacet/beckmann.rs:26
↓ 1 callersMethodnum_matching
Return the number of BxDFs matching the flags
src/bxdf/bsdf.rs:48
↓ 1 callersMethodpdf
(&self, p: &Point, w_i: &Vector, time: f32)
src/geometry/emitter.rs:193
↓ 1 callersMethodpdf
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/torrance_sparrow.rs:71
↓ 1 callersMethodpdf
Compute the pdf of sampling the pair of directions passed for this BxDF
src/bxdf/mod.rs:115
↓ 1 callersMethodpdf
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/microfacet_transmission.rs:100
↓ 1 callersMethodread_worker_buffer
Read results from a worker and accumulate this data in its worker buffer. Returns true if we've read the data being sent and can decode the buffer
src/exec/distrib/master.rs:166
↓ 1 callersFunctionreflect
Compute the reflection of `w` about `v`, both vectors should be normalized
src/linalg/mod.rs:110
↓ 1 callersMethodrender_parallel
Launch a rendering job in parallel across the threads and wait for it to finish
src/exec/multithreaded.rs:30
↓ 1 callersMethodreport_results
(&mut self, samples: &[ImageSample])
src/sampler/adaptive.rs:127
↓ 1 callersMethodsample
(&self, _: &Point, samples: &(f32, f32))
src/geometry/disk.rs:91
↓ 1 callersFunctionsample_02
Generate a sample from a scrambled (0, 2) sequence
src/sampler/ld.rs:91
↓ 1 callersMethodsample_one_light
Uniformly sample the contribution of a randomly chosen light in the scene to the illumination of this BSDF at the point - `w_o` outgoing direction of
src/integrator/mod.rs:106
↓ 1 callersMethodsample_uniform
(&self, samples: &(f32, f32))
src/geometry/disk.rs:85
↓ 1 callersMethodsample_uniform
Uniform sampling for a rect is simple: just scale the two samples into the rectangle's space and return them as the x,y coordinates of the point chose
src/geometry/rectangle.rs:77
↓ 1 callersMethodsample_uniform
(&self, samples: &(f32, f32))
src/geometry/sphere.rs:92
↓ 1 callersMethodsave_results
Read a result frame from a worker and save it into the list of frames we're collecting from all workers. Will save out the final render if all workers
src/exec/distrib/master.rs:124
↓ 1 callersMethodsend_results
Send our blocks back to the master
src/exec/distrib/worker.rs:49
↓ 1 callersMethodset_transform
Set the transform to place the emitter into world space
src/geometry/emitter.rs:148
↓ 1 callersMethodshutter_time
Get the time that the shutter opens and closes at
src/film/camera.rs:146
↓ 1 callersFunctionsingle_node_render
(args: Args)
src/main.rs:56
↓ 1 callersFunctionslerp
Use spherical linear interpolation to interpolate between the two quaternions
src/linalg/quaternion.rs:101
↓ 1 callersFunctionsobol
Generate a scrambled Sobol' sequence value as described by Kollig & Keller (2002) and in PBR method is specialized for base 2
src/sampler/ld.rs:109
↓ 1 callersFunctionsolve_quadratic
Try to solve the quadratic equation `a*t^2 + b*t + c = 0` and return the two real roots if a solution exists
src/linalg/mod.rs:78
↓ 1 callersMethodspecular_reflection
Compute the color of specularly reflecting light off the intersection
src/integrator/mod.rs:49
↓ 1 callersMethodspecular_transmission
Compute the color of specularly transmitted light through the intersection
src/integrator/mod.rs:74
↓ 1 callersFunctionspherical_phi
Compute the value of phi for the vector in the spherical coordinate system
src/linalg/mod.rs:70
↓ 1 callersMethodsurface_area
(&self)
src/geometry/disk.rs:94
↓ 1 callersMethodsurface_area
Compute the sphere's surface area
src/geometry/rectangle.rs:85
↓ 1 callersMethodsurface_area
Compute the sphere's surface area
src/geometry/sphere.rs:126
↓ 1 callersFunctiontan_theta_sqr
Compute the value of tan theta^2 for a vector in shading space
src/bxdf/mod.rs:142
↓ 1 callersFunctionthread_work
(spp: usize, queue: &BlockQueue, scene: &Scene, target: &RenderTarget, light_list: &[&Emitter])
src/exec/multithreaded.rs:72
↓ 1 callersFunctionuniform_cone_pdf
Return the PDF for uniformly sampling a cone with some max solid angle
src/mc.rs:62
↓ 1 callersFunctionuniform_sample_cone_frame
Uniformly sample a direction in a cone with max angle `cos_theta_max` where the cone looks down the `w_z` vector provided, with `w_x`, `w_y` forming t
src/mc.rs:76
↓ 1 callersFunctionuniform_sample_sphere
Uniformly sample a direction on the unit sphere about the origin
src/mc.rs:84
↓ 1 callersMethodupdate_frame
Update the camera's shutter open/close time for this new frame
src/film/camera.rs:127
← previousnext →101–200 of 483, ranked by callers