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 51c41c0 commit 5911bf3Copy full SHA for 5911bf3
Sources/GateEngine/Types/Material.swift
@@ -28,12 +28,16 @@ public struct Material {
28
return customUniformValues.sorted(by: { $0.key.compare($1.key) == .orderedAscending })
29
}
30
public mutating func setCustomUniformValue(
31
- _ value: any CustomUniformType,
+ _ value: (any CustomUniformType)?,
32
forUniform name: String
33
) {
34
customUniformValues[name] = value
35
36
37
+ public func hasCustomUniformValue(named key: String) -> Bool {
38
+ return customUniformValues.keys.contains(key)
39
+ }
40
+
41
@usableFromInline
42
internal var channels: [Channel] = [Channel(color: .defaultDiffuseMapColor)]
43
@discardableResult
0 commit comments