So this was working before, now it won’t load. I can’t spot anything that might be from the nightly build. console shows ‘varying’ : Illegal use of reserved word
Help ?
https://www.babylonjs-playground.com/#0GG6MR#28
ok, so the pg works if the ‘varying’ keyword is now removed. Appears that some work is being done on shaderProcessor that’s breaking stuff. On my local machine, scene.render is throwing ‘computeShadowWithPCF5’ : no matching overloaded function found.
Gonna give it a few days for this to clear up. Cheers !
Sorry about that, we ll check with @Deltakosh ASAP and yes it might be the new Processor breaking it.
This will get fixed today.
1 Like
It is due to the processing taking varying or attributes only on the line start not inside:
isValid(preprocessors: { [key: string]: string }): boolean {
return true;
}
process(preprocessors: { [key: string]: string }, options: ProcessingOptions): string {
let result = "";
if (this.line) {
let value: string = this.line;
let processor = options.processor;
if (processor) {
if (processor.attributeProcessor && this._lineStartsWith("attribute")) {
value = processor.attributeProcessor(this.line);
} else if (processor.varyingProcessor && this._lineStartsWith("varying")) {
value = processor.varyingProcessor(this.line, options.isFragment);
}
}
result += value + "\r\n";
}
this.children.forEach((child) => {
}
process(preprocessors: { [key: string]: string }, options: ProcessingOptions): string {
let result = "";
if (this.line) {
let value: string = this.line;
let processor = options.processor;
if (processor) {
if (processor.attributeProcessor && this._lineStartsWith("attribute")) {
value = processor.attributeProcessor(this.line);
} else if (processor.varyingProcessor && this._lineStartsWith("varying")) {
value = processor.varyingProcessor(this.line, options.isFragment);
}
}
result += value + "\r\n";
}
this.children.forEach((child) => {
result += child.process(preprocessors, options);
});
In your case the varying appears in the middle of the line:
uniform mat4 textureMatrix;varying vec2 vUv;
I guess we should expand this but I ll check with @Deltakosh later today to be sure we are doing it wisely
1 Like
Another one for you, this one is from the doc on shadows:
https://playground.babylonjs.com/#B48X7G#1
https://playground.babylonjs.com/#B48X7G#2
console throws:
‘computeShadowWithPCF5’ : no matching overloaded function found
‘computeShadowWithPCSS64’ : no matching overloaded function found
Good catch! I’ll fix that asap
1 Like