The Skung Rockification of Ziggy Skungdust and the SIMD's

This commit is contained in:
2024-05-13 01:11:03 +10:00
parent b62cd056b5
commit 6c44476062
40 changed files with 2066 additions and 386 deletions

View File

@ -1,19 +1,21 @@
public struct Material
{
public var id: String
public var diffuse: Colour, specular: Colour
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 = .zero,
gloss: Float = 0,
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
}