MCPcopy Create free account

hub / github.com/ErisianArchitect/scratch / functions

Functions131 in github.com/ErisianArchitect/scratch

↓ 12 callersFunctionread_texture
(path: P)
src/cubemap.rs:126
↓ 12 callersMethodset_with
(&mut self, x: i32, y: i32, z: i32, f: F)
src/chunk.rs:124
↓ 12 callersMethodset_with_reflection
(&mut self, x: i32, y: i32, z: i32, f: F)
src/chunk.rs:130
↓ 10 callersMethodget
(&self, pos: Vec3A)
src/main.rs:154
↓ 8 callersMethodget
(&self, index: usize)
src/perlin.rs:24
↓ 8 callersMethodsample_uv
(&self, face: Face, u: f32, v: f32)
src/cubemap.rs:58
↓ 6 callersFunctioncalc_t_max
(step: i32, cell_size: f32, p: f32, magnitude: f32)
src/math.rs:229
↓ 6 callersMethodcalculate
(&self, color: Vec3A, normal: Vec3A, occluded: bool)
src/main.rs:244
↓ 6 callersMethodget
(&self, x: i32, y: i32, z: i32)
src/chunk.rs:25
↓ 6 callersMethodpush_unchecked
(&mut self, value: T)
src/instack.rs:23
↓ 6 callersMethodraycast
(&self, ray: Ray3, max_distance: f32)
src/chunk.rs:186
↓ 6 callersMethodrotate_vec
(&self, v: Vec3A)
src/camera.rs:128
↓ 5 callersFunctionaspect_ratio
(size: (u32, u32))
src/camera.rs:39
↓ 5 callersMethodget_reflection
(&self, x: i32, y: i32, z: i32)
src/chunk.rs:47
↓ 4 callersMethodcalc_color_before_reflections
(&self, hit_point: Vec3A, hit_normal: Vec3A, hit_coord: IVec3)
src/main.rs:318
↓ 4 callersMethodget_hit_point
(&self, ray: Ray3, face: Face)
src/chunk.rs:480
↓ 4 callersFunctiongrad
(hash: usize, x: f32, y: f32)
src/perlin.rs:44
↓ 4 callersFunctionmake_seed
(value: u64)
src/perlin.rs:11
↓ 4 callersMethodnormal
(self)
src/math.rs:35
↓ 4 callersMethodpop_unchecked
(&mut self)
src/instack.rs:35
↓ 4 callersFunctionreflect
(ray_dir: Vec3A, normal: Vec3A)
src/main.rs:282
↓ 3 callersFunctionbyte_scalar
(byte: u8)
src/math.rs:87
↓ 3 callersFunctioncalc_step
(cell_size: f32, magnitude: f32)
src/math.rs:197
↓ 3 callersFunctioncombine_reflection
(reflectivity: f32, diffuse: Vec3A, reflection: Vec3A)
src/main.rs:288
↓ 3 callersFunctionlerp
(a: f32, b: f32, t: f32)
src/perlin.rs:7
↓ 3 callersFunctionnorm_u8
(norm: f32)
src/main.rs:166
↓ 3 callersMethodquat
Returns the quaternion for the [Camera]'s rotation.
src/camera.rs:224
↓ 3 callersMethodrotate_vec_y
Rotates vector around the Y axis.
src/camera.rs:134
↓ 3 callersFunctionrotation_from_direction
(direction: Vec3A)
src/camera.rs:12
↓ 3 callersFunctionscrunch
(value: f32)
src/math.rs:99
↓ 3 callersMethodsky_color
(&self, ray_dir: Vec3A)
src/main.rs:572
↓ 3 callersMethodtranslate
(&mut self, translation: Vec3A)
src/camera.rs:179
↓ 2 callersFunctionbox_at
(start: (i32, i32, i32))
src/main.rs:727
↓ 2 callersFunctionfade
(t: f32)
src/perlin.rs:40
↓ 2 callersMethodlen
(&self)
src/instack.rs:41
↓ 2 callersMethodprojection_view_matrix
(&self)
src/camera.rs:251
↓ 2 callersFunctionrotation_from_look_at
(position: Vec3A, target: Vec3A)
src/camera.rs:7
↓ 2 callersMethodset
(&mut self, x: i32, y: i32, z: i32, on: bool)
src/chunk.rs:62
↓ 2 callersMethodset_reflection
(&mut self, x: i32, y: i32, z: i32, on: bool)
src/chunk.rs:77
↓ 1 callersMethodapply
(&self, color: Vec3A, normal: Vec3A)
src/main.rs:199
↓ 1 callersMethodcalc_ray_dir
(self, ndc: Vec2)
src/main.rs:129
↓ 1 callersFunctioncheckerboard
(x: i32, y: i32, z: i32)
src/main.rs:585
↓ 1 callersMethoddraw_box
(&mut self, start: (i32, i32, i32), end: (i32, i32, i32), on: bool)
src/chunk.rs:178
↓ 1 callersMethoddraw_box_reflection
(&mut self, start: (i32, i32, i32), end: (i32, i32, i32), on: bool)
src/chunk.rs:182
↓ 1 callersMethoddraw_box_with
(&mut self, start: (i32, i32, i32), end: (i32, i32, i32), f: F)
src/chunk.rs:136
↓ 1 callersMethoddraw_box_with_reflection
(&mut self, start: (i32, i32, i32), end: (i32, i32, i32), f: F)
src/chunk.rs:157
↓ 1 callersMethodfill_box
(&mut self, start: (i32, i32, i32), end: (i32, i32, i32), on: bool)
src/chunk.rs:92
↓ 1 callersMethodfill_box_reflection
(&mut self, start: (i32, i32, i32), end: (i32, i32, i32), on: bool)
src/chunk.rs:108
↓ 1 callersMethodheight
(&self)
src/cubemap.rs:20
↓ 1 callersMethodindex
(self, x: u32, y: u32)
src/main.rs:84
↓ 1 callersMethodinv_index
(self, index: u32)
src/main.rs:90
↓ 1 callersFunctionnext_start
(end: (i32, i32, i32))
src/main.rs:730
↓ 1 callersFunctionopen_simplex_2d
(permutation: &Permutation, x: f32, y: f32)
src/open_simplex.rs:15
↓ 1 callersFunctionperlin
(permutation: &Permutation, x: f32, y: f32)
src/perlin.rs:51
↓ 1 callersMethodpoint_on_ray
(&self, distance: f32)
src/ray.rs:39
↓ 1 callersFunctionprint_f32_range
(range: std::ops::Range<f32>)
src/main.rs:227
↓ 1 callersMethodprojection_matrix
(&self)
src/camera.rs:247
↓ 1 callersFunctionraycast_scene
()
src/main.rs:589
↓ 1 callersFunctionrgb
(r: f32, g: f32, b: f32)
src/main.rs:171
↓ 1 callersMethodrotation_matrix
(&self)
src/camera.rs:243
↓ 1 callersMethodsample_dir
(&self, dir: Vec3A)
src/cubemap.rs:64
↓ 1 callersFunctionscrunch_factor
(cell_size: Vec3)
src/math.rs:104
↓ 1 callersFunctionscrunch_vector
(input: Vec3, cell_size: Vec3)
src/math.rs:112
↓ 1 callersMethodtrace_color
(&self, ray: Ray3, near: f32, far: f32)
src/main.rs:565
↓ 1 callersMethodtrace_reflections
Trace reflections for exact number of steps and calculate the color.
src/main.rs:512
↓ 1 callersMethodtranslate_planar
For planar camera translation.
src/camera.rs:193
↓ 1 callersMethodtranslate_rotated
Translates relative to camera rotation.
src/camera.rs:184
↓ 1 callersMethodview_matrix
(&self)
src/camera.rs:236
↓ 1 callersMethodwidth
(&self)
src/cubemap.rs:16
↓ 1 callersMethodworld_to_clip
(&self, pos: Vec3A)
src/camera.rs:255
↓ 1 callersMethody_quat
(&self)
src/camera.rs:232
Methodadv_move
(&mut self, move_type: MoveType, translation: Vec3A)
src/camera.rs:171
Methodat
Creates an unrotated camera at the given position.
src/camera.rs:64
Methodaxis
(self)
src/math.rs:26
Methodbackward
(&self)
src/camera.rs:159
Functionboxes
(start: (i32, i32, i32), chunk: &mut Chunk, rng: &mut StdRng)
src/main.rs:734
Methodcalc_color_before_reflections_no_diffuse
(&self, hit_point: Vec3A, hit_normal: Vec3A)
src/main.rs:333
Methodcalc_delta
(mag: f32)
src/chunk.rs:335
Methodcalc_t_max
(step: i32, fract: f32, mag: f32)
src/chunk.rs:365
Methodcol_index
(x: i32, z: i32)
src/chunk.rs:20
Methoddown
(&self)
src/camera.rs:143
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/main.rs:70
Methodforward
(&self)
src/camera.rs:155
Methodfrom_direction
(dir: Vec3A)
src/math.rs:46
Methodfrom_files
(files: [P; 6])
src/cubemap.rs:46
Methodfrom_look_at
( position: Vec3A, target: Vec3A, fov: f32, z_near: f32, z_far: f32,
src/camera.rs:82
Methodfrom_look_to
`look_to` means to point in the same direction as the given `direction` vector.
src/camera.rs:103
Methodfrom_seed
(seed: [u8; 32])
src/perlin.rs:28
Methodfrom_target
(pos: Vec3A, target: Vec3A)
src/ray.rs:23
Methodget_with_scale
(&self, pos: Vec3A, scale: f64)
src/main.rs:145
Methodhit_cell
(coord: IVec3, distance: f32)
src/chunk.rs:471
Methodhit_face
(face: Face, coord: IVec3, distance: f32)
src/chunk.rs:462
Methodindex
(self)
src/math.rs:80
Methodinvert_dir
(self)
src/ray.rs:31
Methoditer_height
(self)
src/main.rs:100
Methoditer_width
(self)
src/main.rs:95
Methodleft
(&self)
src/camera.rs:147
Methodlook_at
(&mut self, target: Vec3A)
src/camera.rs:199
Methodlook_to
(&mut self, direction: Vec3A)
src/camera.rs:203
Functionmain
()
build.rs:1
next →1–100 of 131, ranked by callers