super-hero/extensions/shader-graph/shader-node/assets/operation/manual/input/texture/texture2d-asset.ts

8 lines
225 B
TypeScript
Raw Normal View History

2024-05-29 19:24:12 -07:00
import TextureAssetNode from './texture-asset';
export default class Texture2DAsset extends TextureAssetNode {
generateCode() {
return `sampler2D ${this.getOutputVarName(0)} = ${this.getInputValue(0)};`;
}
}