init dump
This commit is contained in:
20
Sources/JolkEngine/Renderer/Material.swift
Normal file
20
Sources/JolkEngine/Renderer/Material.swift
Normal file
@ -0,0 +1,20 @@
|
||||
public struct Material
|
||||
{
|
||||
public var id: String
|
||||
public var diffuse: Colour, specular: Colour
|
||||
public var specularExp: Float
|
||||
public var texture: RenderTexture2D
|
||||
|
||||
public init(id: String = "",
|
||||
diffuse: Colour = .white,
|
||||
specular: Colour = .zero,
|
||||
gloss: Float = 0,
|
||||
texture: RenderTexture2D = .empty)
|
||||
{
|
||||
self.id = id
|
||||
self.diffuse = diffuse
|
||||
self.specular = specular
|
||||
self.specularExp = gloss
|
||||
self.texture = texture
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user