How do I point sample a env map with an environment call? I thought it would be something like
// Initialize texture options for point sampling gTexOpts.nchannels = 3; gTexOpts.firstchannel = 0; gTexOpts.swrap = TextureOpt::WrapPeriodic; gTexOpts.twrap = TextureOpt::WrapClamp; gTexOpts.samples = 1; gTexOpts.mipmode = TextureOpt::MipModeNoMIP; gTexOpts.interpmode = TextureOpt::InterpClosest; // Force closest texel gTexOpts.conservative_filter = false; gTexOpts.sblur = 0; gTexOpts.tblur = 0; gTexOpts.swidth = 0; gTexOpts.twidth = 0; const Imath::V3f zero(0,0,0); bool ok = gTexSys->environment(filename, gTexOpts, r, zero, zero, test); Ryan
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
