We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed1ef4 commit 6754a6aCopy full SHA for 6754a6a
Sources/GateEngine/Types/Material.swift
@@ -39,7 +39,7 @@ public struct Material {
39
}
40
41
@usableFromInline
42
- internal var channels: [Channel] = [Channel(color: .defaultDiffuseMapColor)]
+ internal var channels: [Channel] = [Channel(color: .white)]
43
@discardableResult
44
public mutating func channel<ResultType>(_ index: UInt8, _ block: (_ channel: inout Channel) -> ResultType) -> ResultType {
45
precondition(
@@ -65,7 +65,7 @@ public struct Material {
65
66
67
public init(texture: Texture) {
68
- self.channels[0] = Channel(color: .defaultDiffuseMapColor, texture: texture)
+ self.channels[0] = Channel(color: .white, texture: texture)
69
70
71
public init(_ config: (_ material: inout Self) -> Void) {
0 commit comments