Files
CavesOfSwift/Sources/JolkEngine/Renderer/Material.swift

23 lines
509 B
Swift

public struct Material
{
public var id: String
public var diffuse: Colour, specular: Colour, emmision: Colour
public var specularExp: Float
public var texture: RenderTexture2D
public init(id: String = "",
diffuse: Colour = .white,
specular: Colour = .black,
emmision: Colour = .black,
gloss: Float = 20,
texture: RenderTexture2D = .empty)
{
self.id = id
self.diffuse = diffuse
self.specular = specular
self.emmision = emmision
self.specularExp = gloss
self.texture = texture
}
}