MeshVertex

     ... ev Color for i 0 i 3 i color i unsigned char color1 i int s color2 i color1 i interpolate each component of the color seperately out TexCoord x sv TexCoord x s ev TexCoord x sv TexCoord x out TexCoord y sv TexCoord y s ev TexCoord y sv TexCoord y interpolate the texture coordinates out Normal sv...

  • Size: 1.1 kb
  • Date: 2013-04-13
  • .cpp
  • graphics.stanford.edu

http://graphics.stanford.edu/~mdfisher/Code/Engine/MeshVertex.cpp

BaseMeshVertexModifiers

     ... ColorNormals void BaseMesh GenerateNormals UINT vc VertexCount ic IndexCount MeshVertex V Vertices DWORD I Indices Vec3f V1 V2 Normal for UINT i 0 i vc i V i Normal Vec3f Origin zero each normal for UINT i 0 i ic i 3 for every triangle V1 V I i 2 Pos V I i 0 Pos V2 V I i 1 Pos V I i 0 Pos Normal Vec3f Cross V...

  • Size: 6.3 kb
  • Date: 2013-04-13
  • .cpp
  • graphics.stanford.edu

...phics.stanford.edu/~mdfisher/Code/Engine/BaseMeshVertexModifiers.cpp

EnvironmentShader

     ... left right top bottom back front ShImage image for int i 0 i 6 i image loadPng std string SHMEDIA DIR envmaps aniroom imageNames i png ShTexture2D ShColor4f face image width image height face load image cubemap set static cast ShCubeDirection i face vsh SH BEGIN VERTEX PROGRAM ShInputNormal3f normal...

  • Size: 2.1 kb
  • Date: 2012-07-07
  • .cpp
  • libsh.org

http://libsh.org/shaders/env/source/EnvironmentShader.cpp

debug

     ... include transport h include scene h typedef enum DEBUG U DEBUG V DEBUG GEOM NORMAL X DEBUG GEOM NORMAL Y DEBUG GEOM NORMAL Z DEBUG SHAD NORMAL X DEBUG SHAD NORMAL Y DEBUG SHAD NORMAL Z DEBUG ONE DEBUG ZERO DEBUG HIT SOMETHING DebugVariable class DebugIntegrator public SurfaceIntegrator publi...

  • Size: 3.6 kb
  • Date: 2012-07-07
  • .cpp
  • www.pbrt.org

http://www.pbrt.org/plugins/debug.cpp

debug

     ... include transport h include scene h typedef enum DEBUG U DEBUG V DEBUG GEOM NORMAL X DEBUG GEOM NORMAL Y DEBUG GEOM NORMAL Z DEBUG SHAD NORMAL X DEBUG SHAD NORMAL Y DEBUG SHAD NORMAL Z DEBUG ONE DEBUG ZERO DEBUG HIT SOMETHING DebugVariable class DebugIntegrator public SurfaceIntegrator publi...

  • Size: 3.6 kb
  • Date: 2012-10-20
  • .cpp
  • pbrt.org

http://pbrt.org/plugins/debug.cpp

imagecurvature

     [ c++ code ] ...include imagecurvature h DepthAnalyzer DepthAnalyzer float drgb BlockedArray Point cd BlockedArray Vector nn int w int h depthrgb drgb coord cd width w height h acuN nn normal nn new BlockedArray Vector w h k1 new BlockedArray float w h k2 new BlockedArray float w h criterion new BlockedArray float...

  • Size: 6 kb
  • Date: 2012-12-09
  • .cpp
  • people.csail.mit.edu

http://people.csail.mit.edu/fredo/PUBLI/Fourier/imagecurvature.cpp

IsoSurface

     ...include Main h IsoSurface IsoSurface Function NULL Epsilon 0 0003f void IsoSurface CalcGradient const Vec3f Pos Vec3f Normal float value Function Pos Normal x Function Vec3f Pos x Epsilon Pos y Pos z value Normal y Function Vec3f Pos x Pos y Epsilon Pos z value Normal z Function Vec3f Pos x Pos y...

  • Size: 4.5 kb
  • Date: 2013-04-11
  • .cpp
  • graphics.stanford.edu

...p://graphics.stanford.edu/~mdfisher/Code/MarchingCubes/IsoSurface.cpp

PhongShader

     ...include Globals hpp include PhongShader hpp using namespace SH PhongShader PhongShader PhongShader PhongShader void PhongShader init vsh SH BEGIN VERTEX PROGRAM declare input vertex parameters unpacked in order given ShInputTexCoord2f ui texture coords ShInputNormal3f normal normal vectors MCS...

  • Size: 2.7 kb
  • Date: 2012-07-07
  • .cpp
  • libsh.org

http://libsh.org/shaders/phong/source/PhongShader.cpp

shape

     ... for the shape to get the normal vector Method called getNormalVector gmVector3 Shape getNormalVector gmVector3 point gmVector3 b return b Parameters gmVector3 dir gmVector3 normal Return value gmVector3 Purpose The function is used as an abstract method for the shape to get the reflection vector Method called...

  • Size: 3.2 kb
  • Date: 2012-10-02
  • .cpp
  • ahmed.obied.net

http://ahmed.obied.net/software/code/draytracer/shape.cpp

diffuse

     ...include DiffuseShader hpp include fstream include Globals hpp using namespace SH DiffuseShader DiffuseShader DiffuseShader DiffuseShader void DiffuseShader init vsh SH BEGIN VERTEX PROGRAM ShInputNormal3f normal ShInputPosition4f p ShOutputPoint4f ov ShOutputNormal3f on ShOutputVector3f lvv...

  • Size: 1.2 kb
  • Date: 2012-07-07
  • .cpp
  • libsh.org

http://libsh.org/shaders/diffuse/source/diffuse.cpp

1 2 3 4 5 6 7 8 9 10 >>