mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
TheoraTextureObject
Places a theora video onto a named texture surface that may be used by any material. Allows for the video to play, pause, stop, loop, and for the source video to be changed at any time. Based on this resource: http://www.garagegames.com/community/resources/view/21019
This commit is contained in:
parent
78242191ec
commit
30144a9f98
3 changed files with 314 additions and 0 deletions
|
|
@ -57,9 +57,15 @@ BaseMatInstance* InstancingMaterialHook::getInstancingMat( BaseMatInstance *matI
|
|||
FeatureSet features( matInst->getRequestedFeatures() );
|
||||
features.addFeature( MFT_UseInstancing );
|
||||
|
||||
// Allow for named texture assignments
|
||||
Material::sAllowTextureTargetAssignment = true;
|
||||
|
||||
if ( !instMat->init( features, matInst->getVertexFormat() ) )
|
||||
SAFE_DELETE( instMat );
|
||||
|
||||
// Turn back off named texture assignments
|
||||
Material::sAllowTextureTargetAssignment = false;
|
||||
|
||||
hook->mMatInst = instMat;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue