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

The transform matrix to apply to the matrix. This is sometimes referred to as the model matrix. FIXME: Wording needs clarification.

Vertex buffer associated with this fragment.

A slice of the vertex buffer above.

The ambient color.

The diffuse color.

The specular color.

The pecular exponent.

Trait Implementations

impl<R: Clone + Resources> Clone for Fragment<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more