Changeset 78375 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lighting.txt
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lighting.txt
r15532 r78375 9 9 :shadeModel:shadeModel:ShadeModel 10 10 :lightModel:lightModelAmbient|r,g,b,a:LightModelfv,GL_LIGHT_MODEL_AMBIENT 11 :lightModel:lightModelLocalViewer:* diff_api.LightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, to->lightModelLocalViewer==GL_TRUE);12 :lightModel:lightModelTwoSide:* diff_api.LightModeli(GL_LIGHT_MODEL_TWO_SIDE, to->lightModelTwoSide==GL_TRUE);13 :lightModel:lightModelColorControlEXT:* diff_api.LightModeli(GL_LIGHT_MODEL_COLOR_CONTROL_EXT, to->lightModelColorControlEXT);11 :lightModel:lightModelLocalViewer:*pState->diff_api.LightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, to->lightModelLocalViewer==GL_TRUE); 12 :lightModel:lightModelTwoSide:*pState->diff_api.LightModeli(GL_LIGHT_MODEL_TWO_SIDE, to->lightModelTwoSide==GL_TRUE); 13 :lightModel:lightModelColorControlEXT:*pState->diff_api.LightModeli(GL_LIGHT_MODEL_COLOR_CONTROL_EXT, to->lightModelColorControlEXT); 14 14 %flush 15 15 :material:ambient[0]|r,g,b,a:Materialfv, GL_FRONT, GL_AMBIENT … … 41 41 :attenuation:linearAttenuation:Lightf, GL_LIGHT0+i, GL_LINEAR_ATTENUATION 42 42 :attenuation:quadraticAttenuation:Lightf, GL_LIGHT0+i, GL_QUADRATIC_ATTENUATION 43 :position:* diff_api.MatrixMode(GL_MODELVIEW);44 :position:* diff_api.PushMatrix();45 :position:* diff_api.LoadIdentity();43 :position:*pState->diff_api.MatrixMode(GL_MODELVIEW); 44 :position:*pState->diff_api.PushMatrix(); 45 :position:*pState->diff_api.LoadIdentity(); 46 46 :position:position|x,y,z,w:Lightfv, GL_LIGHT0+i, GL_POSITION 47 :position:* diff_api.PopMatrix();48 :position:* diff_api.MatrixMode(toCtx->transform.matrixMode);49 :spot:* diff_api.MatrixMode(GL_MODELVIEW);50 :spot:* diff_api.PushMatrix();51 :spot:* diff_api.LoadIdentity();47 :position:*pState->diff_api.PopMatrix(); 48 :position:*pState->diff_api.MatrixMode(toCtx->transform.matrixMode); 49 :spot:*pState->diff_api.MatrixMode(GL_MODELVIEW); 50 :spot:*pState->diff_api.PushMatrix(); 51 :spot:*pState->diff_api.LoadIdentity(); 52 52 :spot:spotDirection|x,y,z:Lightfv, GL_LIGHT0+i, GL_SPOT_DIRECTION 53 53 :spot:spotExponent:Lightf, GL_LIGHT0+i, GL_SPOT_EXPONENT 54 54 :spot:spotCutoff:Lightf, GL_LIGHT0+i, GL_SPOT_CUTOFF 55 :spot:* diff_api.PopMatrix();56 :spot:* diff_api.MatrixMode(toCtx->transform.matrixMode);55 :spot:*pState->diff_api.PopMatrix(); 56 :spot:*pState->diff_api.MatrixMode(toCtx->transform.matrixMode); 57 57 %flush 58 58 >CLEARDIRTY(lb->dirty, nbitID);
Note:
See TracChangeset
for help on using the changeset viewer.