source: trunk/packages/vizservers/nanovis/NvStdVertexShader.cpp @ 2956

Last change on this file since 2956 was 2956, checked in by ldelgass, 8 years ago

First batch of converting shaders to use new parameter support in NvShader?.

  • Property svn:eol-style set to native
File size: 526 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2#include "NvStdVertexShader.h"
3
4NvStdVertexShader::NvStdVertexShader()
5{
6    init();
7}
8
9NvStdVertexShader::~NvStdVertexShader()
10{
11}
12
13void NvStdVertexShader::init()
14{
15    loadVertexProgram("vertex_std.cg", "main");
16}
17
18void NvStdVertexShader::bind()
19{
20    setGLStateMatrixVPParameter("modelViewProjMatrix", MODELVIEW_PROJECTION_MATRIX, MATRIX_IDENTITY);
21    setGLStateMatrixVPParameter("modelViewInv", MODELVIEW_MATRIX, MATRIX_INVERSE);
22
23    NvShader::bind();
24}
Note: See TracBrowser for help on using the repository browser.