Struct amethyst_renderer::Fragment
[−]
[src]
pub struct Fragment<R: Resources> { pub transform: [[f32; 4]; 4], pub buffer: Buffer<R, VertexPosNormal>, pub slice: Slice<R>, pub ka: Texture<R>, pub kd: Texture<R>, pub ks: Texture<R>, pub ns: f32, }
The most basic drawable element.
Fields
transform: [[f32; 4]; 4]
The transform matrix to apply to the matrix. This is sometimes referred to as the model matrix. FIXME: Wording needs clarification.
buffer: Buffer<R, VertexPosNormal>
Vertex buffer associated with this fragment.
slice: Slice<R>
A slice of the vertex buffer above.
ka: Texture<R>
The ambient color.
kd: Texture<R>
The diffuse color.
ks: Texture<R>
The specular color.
ns: f32
The pecular exponent.
Trait Implementations
impl<R: Clone + Resources> Clone for Fragment<R>
[src]
fn clone(&self) -> Fragment<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more