Hello,
I am trying to apply a texture map to a BRDF material, but in the VRF, the object just looks white...
Below is what I tried. Could anyone point out what I did wrong please?
TexBitmap tx = renderer.NewPlugin<TexBitmap>();
BitmapBuffer bb = renderer.NewPlugin<BitmapBuffer>();
bb.File = @"C:\Users\xxxx\Desktop\Image Data\Brick2.jpg";
tx.Bitmap = bb;
BRDFDiffuse newBRDF = renderer.NewPlugin<BRDFDiffuse>();
newBRDF.ColorTex = tx;
MtlSingleBRDF newMaterial = renderer.NewPlugin<MtlSingleBRDF>();
newMaterial.Brdf = newBRDF;
I am trying to apply a texture map to a BRDF material, but in the VRF, the object just looks white...
Below is what I tried. Could anyone point out what I did wrong please?
TexBitmap tx = renderer.NewPlugin<TexBitmap>();
BitmapBuffer bb = renderer.NewPlugin<BitmapBuffer>();
bb.File = @"C:\Users\xxxx\Desktop\Image Data\Brick2.jpg";
tx.Bitmap = bb;
BRDFDiffuse newBRDF = renderer.NewPlugin<BRDFDiffuse>();
newBRDF.ColorTex = tx;
MtlSingleBRDF newMaterial = renderer.NewPlugin<MtlSingleBRDF>();
newMaterial.Brdf = newBRDF;
Comment