Skip to content

Commit 6754a6a

Browse files
committed
Use white
1 parent 3ed1ef4 commit 6754a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/GateEngine/Types/Material.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public struct Material {
3939
}
4040

4141
@usableFromInline
42-
internal var channels: [Channel] = [Channel(color: .defaultDiffuseMapColor)]
42+
internal var channels: [Channel] = [Channel(color: .white)]
4343
@discardableResult
4444
public mutating func channel<ResultType>(_ index: UInt8, _ block: (_ channel: inout Channel) -> ResultType) -> ResultType {
4545
precondition(
@@ -65,7 +65,7 @@ public struct Material {
6565
}
6666

6767
public init(texture: Texture) {
68-
self.channels[0] = Channel(color: .defaultDiffuseMapColor, texture: texture)
68+
self.channels[0] = Channel(color: .white, texture: texture)
6969
}
7070

7171
public init(_ config: (_ material: inout Self) -> Void) {

0 commit comments

Comments
 (0)