Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -u1 -r preproc/before/build/brush_primit.ii preproc/after/build/brush_primit.ii
- --- preproc/before/build/brush_primit.ii 2017-07-09 04:26:32.974542166 +0200
- +++ preproc/after/build/brush_primit.ii 2017-07-09 04:40:18.146395856 +0200
- @@ -53394,11 +53394,2 @@
- }
- -void BPMatDump( float A[2][3] ){
- - globalOutputStream() << "" << A[0][0]
- - << " " << A[0][1]
- - << " " << A[0][2]
- - << "\n" << A[1][0]
- - << " " << A[1][2]
- - << " " << A[1][2]
- - << "\n0 0 1\n";
- -}
- void BPMatRotate( float A[2][3], float theta ){
- diff -u1 -r preproc/before/build/patchdialog.ii preproc/after/build/patchdialog.ii
- --- preproc/before/build/patchdialog.ii 2017-07-09 04:26:45.082670385 +0200
- +++ preproc/after/build/patchdialog.ii 2017-07-09 04:40:33.374562337 +0200
- @@ -78616,30 +78616,28 @@
- void render( RenderStateFlags state ) const {
- - {
- - if ( ( state & RENDER_BUMP ) != 0 ) {
- - if ( GlobalShaderCache().useShaderLanguage() ) {
- - GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - else
- - {
- - GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - }
- - else
- - {
- + if ( ( state & RENDER_BUMP ) != 0 ) {
- + if ( GlobalShaderCache().useShaderLanguage() ) {
- GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- - GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- - const RenderIndex* strip_indices = m_tess.m_indices.data();
- - for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + else
- {
- - GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- }
- + else
- + {
- + GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + }
- + GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- + const RenderIndex* strip_indices = m_tess.m_indices.data();
- + for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + {
- + GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + }
- }
- @@ -78980,3 +78978,2 @@
- void RenderDebug( RenderStateFlags state ) const;
- -void RenderNormals( RenderStateFlags state ) const;
- void pushElement( const XMLElement& element ){
- diff -u1 -r preproc/before/build/patch.ii preproc/after/build/patch.ii
- --- preproc/before/build/patch.ii 2017-07-09 04:26:44.677666096 +0200
- +++ preproc/after/build/patch.ii 2017-07-09 04:40:33.289561422 +0200
- @@ -41756,30 +41756,28 @@
- void render( RenderStateFlags state ) const {
- - {
- - if ( ( state & RENDER_BUMP ) != 0 ) {
- - if ( GlobalShaderCache().useShaderLanguage() ) {
- - GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - else
- - {
- - GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - }
- - else
- - {
- + if ( ( state & RENDER_BUMP ) != 0 ) {
- + if ( GlobalShaderCache().useShaderLanguage() ) {
- GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- - GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- - const RenderIndex* strip_indices = m_tess.m_indices.data();
- - for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + else
- {
- - GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- }
- + else
- + {
- + GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + }
- + GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- + const RenderIndex* strip_indices = m_tess.m_indices.data();
- + for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + {
- + GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + }
- }
- @@ -42120,3 +42118,2 @@
- void RenderDebug( RenderStateFlags state ) const;
- -void RenderNormals( RenderStateFlags state ) const;
- void pushElement( const XMLElement& element ){
- @@ -68392,44 +68389,2 @@
- }
- -void RenderablePatchSolid::RenderNormals() const {
- - const std::size_t width = m_tess.m_numStrips + 1;
- - const std::size_t height = m_tess.m_lenStrips >> 1;
- - GlobalOpenGL().m_glBegin( 0x0001 );
- - for ( std::size_t i = 0; i < width; i++ )
- - {
- - for ( std::size_t j = 0; j < height; j++ )
- - {
- - {
- - Vector3 vNormal(
- - vector3_added(
- - vertex3f_to_vector3( ( m_tess.m_vertices.data() + ( j * width + i ) )->vertex ),
- - vector3_scaled( normal3f_to_vector3( ( m_tess.m_vertices.data() + ( j * width + i ) )->normal ), 8 )
- - )
- - );
- - GlobalOpenGL().m_glVertex3fv( vertex3f_to_array( ( m_tess.m_vertices.data() + ( j * width + i ) )->vertex ) );
- - GlobalOpenGL().m_glVertex3fv( &vNormal[0] );
- - }
- - {
- - Vector3 vNormal(
- - vector3_added(
- - vertex3f_to_vector3( ( m_tess.m_vertices.data() + ( j * width + i ) )->vertex ),
- - vector3_scaled( normal3f_to_vector3( ( m_tess.m_vertices.data() + ( j * width + i ) )->tangent ), 8 )
- - )
- - );
- - GlobalOpenGL().m_glVertex3fv( vertex3f_to_array( ( m_tess.m_vertices.data() + ( j * width + i ) )->vertex ) );
- - GlobalOpenGL().m_glVertex3fv( &vNormal[0] );
- - }
- - {
- - Vector3 vNormal(
- - vector3_added(
- - vertex3f_to_vector3( ( m_tess.m_vertices.data() + ( j * width + i ) )->vertex ),
- - vector3_scaled( normal3f_to_vector3( ( m_tess.m_vertices.data() + ( j * width + i ) )->bitangent ), 8 )
- - )
- - );
- - GlobalOpenGL().m_glVertex3fv( vertex3f_to_array( ( m_tess.m_vertices.data() + ( j * width + i ) )->vertex ) );
- - GlobalOpenGL().m_glVertex3fv( &vNormal[0] );
- - }
- - }
- - }
- - GlobalOpenGL().m_glEnd();
- -}
- unsigned int subarray_get_degen( PatchControlIter subarray, std::size_t strideU, std::size_t strideV ){
- diff -u1 -r preproc/before/build/patchmanip.ii preproc/after/build/patchmanip.ii
- --- preproc/before/build/patchmanip.ii 2017-07-09 04:26:45.501674822 +0200
- +++ preproc/after/build/patchmanip.ii 2017-07-09 04:40:33.834567288 +0200
- @@ -89900,30 +89900,28 @@
- void render( RenderStateFlags state ) const {
- - {
- - if ( ( state & RENDER_BUMP ) != 0 ) {
- - if ( GlobalShaderCache().useShaderLanguage() ) {
- - GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - else
- - {
- - GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - }
- - else
- - {
- + if ( ( state & RENDER_BUMP ) != 0 ) {
- + if ( GlobalShaderCache().useShaderLanguage() ) {
- GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- - GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- - const RenderIndex* strip_indices = m_tess.m_indices.data();
- - for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + else
- {
- - GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- }
- + else
- + {
- + GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + }
- + GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- + const RenderIndex* strip_indices = m_tess.m_indices.data();
- + for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + {
- + GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + }
- }
- @@ -90264,3 +90262,2 @@
- void RenderDebug( RenderStateFlags state ) const;
- -void RenderNormals( RenderStateFlags state ) const;
- void pushElement( const XMLElement& element ){
- diff -u1 -r preproc/before/build/patchmodule.ii preproc/after/build/patchmodule.ii
- --- preproc/before/build/patchmodule.ii 2017-07-09 04:26:45.447674250 +0200
- +++ preproc/after/build/patchmodule.ii 2017-07-09 04:40:33.727566136 +0200
- @@ -41967,30 +41967,28 @@
- void render( RenderStateFlags state ) const {
- - {
- - if ( ( state & RENDER_BUMP ) != 0 ) {
- - if ( GlobalShaderCache().useShaderLanguage() ) {
- - GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - else
- - {
- - GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - }
- - else
- - {
- + if ( ( state & RENDER_BUMP ) != 0 ) {
- + if ( GlobalShaderCache().useShaderLanguage() ) {
- GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- - GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- - const RenderIndex* strip_indices = m_tess.m_indices.data();
- - for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + else
- {
- - GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- }
- + else
- + {
- + GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + }
- + GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- + const RenderIndex* strip_indices = m_tess.m_indices.data();
- + for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + {
- + GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + }
- }
- @@ -42331,3 +42329,2 @@
- void RenderDebug( RenderStateFlags state ) const;
- -void RenderNormals( RenderStateFlags state ) const;
- void pushElement( const XMLElement& element ){
- diff -u1 -r preproc/before/build/surfacedialog.ii preproc/after/build/surfacedialog.ii
- --- preproc/before/build/surfacedialog.ii 2017-07-09 04:26:52.484748768 +0200
- +++ preproc/after/build/surfacedialog.ii 2017-07-09 04:40:41.290647540 +0200
- @@ -95503,30 +95503,28 @@
- void render( RenderStateFlags state ) const {
- - {
- - if ( ( state & RENDER_BUMP ) != 0 ) {
- - if ( GlobalShaderCache().useShaderLanguage() ) {
- - GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - else
- - {
- - GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- - GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- - }
- - }
- - else
- - {
- + if ( ( state & RENDER_BUMP ) != 0 ) {
- + if ( GlobalShaderCache().useShaderLanguage() ) {
- GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- - GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_TexCoord0, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Tangent, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( c_attr_Binormal, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- - GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- - const RenderIndex* strip_indices = m_tess.m_indices.data();
- - for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + else
- {
- - GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 11, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 8, 2, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 9, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->tangent );
- + GlobalOpenGL().m_glVertexAttribPointerARB( 10, 3, 0x1406, 0, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->bitangent );
- }
- }
- + else
- + {
- + GlobalOpenGL().m_glNormalPointer( 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->normal );
- + GlobalOpenGL().m_glTexCoordPointer( 2, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->texcoord );
- + }
- + GlobalOpenGL().m_glVertexPointer( 3, 0x1406, sizeof( ArbitraryMeshVertex ), &m_tess.m_vertices.data()->vertex );
- + const RenderIndex* strip_indices = m_tess.m_indices.data();
- + for ( std::size_t i = 0; i < m_tess.m_numStrips; i++, strip_indices += m_tess.m_lenStrips )
- + {
- + GlobalOpenGL().m_glDrawElements( 0x0008, GLsizei( m_tess.m_lenStrips ), RenderIndexTypeID, strip_indices );
- + }
- }
- @@ -95867,3 +95865,2 @@
- void RenderDebug( RenderStateFlags state ) const;
- -void RenderNormals( RenderStateFlags state ) const;
- void pushElement( const XMLElement& element ){
- diff -u1 -r preproc/before/build/winding.ii preproc/after/build/winding.ii
- --- preproc/before/build/winding.ii 2017-07-09 04:26:54.889774236 +0200
- +++ preproc/after/build/winding.ii 2017-07-09 04:40:43.765674178 +0200
- @@ -30175,3 +30175,2 @@
- }
- -const double DEBUG_EPSILON_SQUARED = ON_EPSILON * ON_EPSILON;
- void Winding_Clip( const FixedWinding& winding, const Plane3& plane, const Plane3& clipPlane, std::size_t adjacent, FixedWinding& clipped ){
- diff -u1 -r preproc/before/contrib/ufoaiplug/ufoai_filters.ii preproc/after/contrib/ufoaiplug/ufoai_filters.ii
- --- preproc/before/contrib/ufoaiplug/ufoai_filters.ii 2017-07-09 04:26:31.850530263 +0200
- +++ preproc/after/contrib/ufoaiplug/ufoai_filters.ii 2017-07-09 04:40:15.610368008 +0200
- @@ -43100,4 +43100,8 @@
- void visit( Face& face ) const {
- - m_surfaceFlagsVis = face.getShader().m_flags.m_surfaceFlags;
- - m_contentFlagsVis = face.getShader().m_flags.m_contentFlags;
- + if ( m_surfaceFlagsVis < 0 ) {
- + m_surfaceFlagsVis = face.getShader().m_flags.m_surfaceFlags;
- + }
- + if ( m_contentFlagsVis < 0 ) {
- + m_contentFlagsVis = face.getShader().m_flags.m_contentFlags;
- + }
- }
- diff -u1 -r preproc/before/libs/splines/splines.ii preproc/after/libs/splines/splines.ii
- --- preproc/before/libs/splines/splines.ii 2017-07-09 04:26:01.755211561 +0200
- +++ preproc/after/libs/splines/splines.ii 2017-07-09 04:38:10.110989343 +0200
- @@ -17345,6 +17345,3 @@
- void splineDraw()
- -void debugLine( idVec3 &color, float x, float y, float z, float x2, float y2, float z2 ) {
- - idVec3 from( x, y, z );
- - idVec3 to( x2, y2, z2 );
- -}
- +void debugLine( idVec3 &color, float x, float y, float z, float x2, float y2, float z2 )
- void idSplineList::addToRenderer() {
- @@ -17675,5 +17672,3 @@
- int numTargets = targetPositions.Num();
- - if ( numTargets == 0 ) {
- - }
- - else {
- + if ( numTargets != 0 ) {
- if ( getActiveTarget()->numPoints() > 0 ) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement