Constant Material nodes added

This commit is contained in:
barsdeveloper
2023-05-06 18:38:29 +02:00
parent 90f19e1bca
commit f7abd7ff6e
25 changed files with 563 additions and 177 deletions

View File

@@ -0,0 +1,27 @@
import IEntity from "./IEntity.js"
export default class ColorChannelEntity extends IEntity {
static attributes = {
value: {
default: 0,
},
}
static {
this.cleanupAttributes(this.attributes)
}
constructor(values = 0) {
super(values)
/** @type {Number} */ this.value
}
valueOf() {
return this.value
}
toString() {
return this.value.toFixed(6)
}
}