-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Picked the shader glTF_PBR.ogsfx, then went to select my textures and this error returned:
/Users/pasquale/maya/maya2glTF/PBR/shaders/glTF_PBR.ogsfx
// Warning: file: /Users/Shared/Autodesk/maya/2022/scripts/maya2glTF_assignPbrShader.mel line 94: Plug-in, "glslShader.bundle", is already loaded. Skipped. //
// Error: Error loading effect file "/Users/pasquale/Documents/Maya2glTF/maya/renderData/shaders/glTF_PBR.ogsfx":
Failed to compile --> PIXEL SHADER <--
Errors:
=========================
ERROR: 0:248: '' : syntax error: #extension must always be before any non-preprocessor tokens
WARNING: 0:248: extension 'GL_ARB_texture_query_levels' is not supported
246: // Pixel shader block:PS
247:
248: #extension GL_ARB_texture_query_levels : enable
249:
250: const float c_MinRoughness = 0.04;
//
connectAttr -f GLSLShader1.outColor GLSLShader1SG.surfaceShader;
// Connected GLSLShader1.outColor to GLSLShader1SG.surfaceShader. //
sets -e -forceElement GLSLShader1SG;
// GLSLShader1SG //
// Created shader GLSLShader and assigned to the selected objects. //
Using '/Users/pasquale/MO Labs Dropbox/production/3d/maya/props/tomb-stone/gltf-out' as next texture folder
'/users/pasquale/mo labs dropbox/production/3d/maya/props/tomb-stone/gltf-out/pxrsurface4sg_basecolor.png' matched texture pattern 'basecolor'
shadingNode -asTexture -isColorManaged file;
// file1 //
shadingNode -asUtility place2dTexture;
// place2dTexture1 //
connectAttr -f place2dTexture1.coverage file1.coverage;
// Connected place2dTexture1.coverage to file1.coverage. //
connectAttr -f place2dTexture1.translateFrame file1.translateFrame;
// Connected place2dTexture1.translateFrame to file1.translateFrame. //
connectAttr -f place2dTexture1.rotateFrame file1.rotateFrame;
// Connected place2dTexture1.rotateFrame to file1.rotateFrame. //
connectAttr -f place2dTexture1.mirrorU file1.mirrorU;
// Connected place2dTexture1.mirrorU to file1.mirrorU. //
connectAttr -f place2dTexture1.mirrorV file1.mirrorV;
// Connected place2dTexture1.mirrorV to file1.mirrorV. //
connectAttr -f place2dTexture1.stagger file1.stagger;
// Connected place2dTexture1.stagger to file1.stagger. //
connectAttr -f place2dTexture1.wrapU file1.wrapU;
// Connected place2dTexture1.wrapU to file1.wrapU. //
connectAttr -f place2dTexture1.wrapV file1.wrapV;
// Connected place2dTexture1.wrapV to file1.wrapV. //
connectAttr -f place2dTexture1.repeatUV file1.repeatUV;
// Connected place2dTexture1.repeatUV to file1.repeatUV. //
connectAttr -f place2dTexture1.offset file1.offset;
// Connected place2dTexture1.offset to file1.offset. //
connectAttr -f place2dTexture1.rotateUV file1.rotateUV;
// Connected place2dTexture1.rotateUV to file1.rotateUV. //
connectAttr -f place2dTexture1.noiseUV file1.noiseUV;
// Connected place2dTexture1.noiseUV to file1.noiseUV. //
connectAttr -f place2dTexture1.vertexUvOne file1.vertexUvOne;
// Connected place2dTexture1.vertexUvOne to file1.vertexUvOne. //
connectAttr -f place2dTexture1.vertexUvTwo file1.vertexUvTwo;
// Connected place2dTexture1.vertexUvTwo to file1.vertexUvTwo. //
connectAttr -f place2dTexture1.vertexUvThree file1.vertexUvThree;
// Connected place2dTexture1.vertexUvThree to file1.vertexUvThree. //
connectAttr -f place2dTexture1.vertexCameraOne file1.vertexCameraOne;
// Connected place2dTexture1.vertexCameraOne to file1.vertexCameraOne. //
connectAttr place2dTexture1.outUV file1.uv;
// Connected place2dTexture1.outUV to file1.uvCoord. //
connectAttr place2dTexture1.outUvFilterSize file1.uvFilterSize;
// Connected place2dTexture1.outUvFilterSize to file1.uvFilterSize. //
defaultNavigation -force true -connectToExisting -source file1 -destination GLSLShader1.u_BaseColorTexture;
// Error: line 0: No object matches name: GLSLShader1.u_BaseColorTexture //
Metadata
Metadata
Assignees
Labels
No labels