2 #include "oxygine-include.h" 3 #include "STDRenderer.h" 17 float v = 1.0f / (_dAB.x * _dAC.y - _dAB.y * _dAC.x);
21 _dac.x = _dAC.x * a.y - _dAC.y * a.x;
22 _dac.y = -(_dAB.x * a.y - _dAB.y * a.x);
35 vec[0] =
Vector3(_dac.x, _dAC.y, _dAC.x);
36 vec[1] =
Vector3(_dac.y, _dAB.y, _dAB.x);
38 vec[2] =
Vector3(_uvA.x, _duvAB.x, _duvAC.x);
39 vec[3] =
Vector3(_uvA.y, _duvAB.y, _duvAC.y);
49 float a =
Vector3(_dac.x, _dAC.y, _dAC.x).dot(
Vector3(1, pos.x, pos.y));
50 float b =
Vector3(_dac.y, _dAB.y, _dAB.x).dot(
Vector3(1, pos.x, pos.y));
54 float u =
Vector3(_uvA.x, _duvAB.x, _duvAC.x).dot(
Vector3(1, a, b));
55 float v =
Vector3(_uvA.y, _duvAB.y, _duvAC.y).dot(
Vector3(1, a, b));
83 spNativeTexture _mask;
Definition: STDRenderer.h:7
–oxgl-end–!
Definition: Actor.h:14
Definition: VideoDriver.h:12
Definition: MaskedRenderer.h:72
Definition: MaskedRenderer.h:7