|
@@ -18,10 +18,6 @@ export class ShaderCodeNode {
|
|
|
let value: string = this.line;
|
|
|
let processor = options.processor;
|
|
|
if (processor) {
|
|
|
- if (processor.linePreProcessor) {
|
|
|
- value = processor.linePreProcessor(value, options.isFragment);
|
|
|
- }
|
|
|
-
|
|
|
if (processor.attributeProcessor && StringTools.StartsWith(this.line, "attribute")) {
|
|
|
value = processor.attributeProcessor(this.line);
|
|
|
} else if (processor.varyingProcessor && StringTools.StartsWith(this.line, "varying")) {
|
|
@@ -47,6 +43,10 @@ export class ShaderCodeNode {
|
|
|
value = processor.endOfUniformBufferProcessor(this.line, options.isFragment);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (processor.lineProcessor) {
|
|
|
+ value = processor.lineProcessor(value, options.isFragment);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
result += value + "\r\n";
|