本文整理汇总了C++中glm::angleAxis方法的典型用法代码示例。如果您正苦于以下问题:C++ glm::angleAxis方法的具体用法?C++ glm::angleAxis怎么用?C++ glm::angleAxis使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类glm
的用法示例。
在下文中一共展示了glm::angleAxis方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupRenderables
//---------------------------------------------------------------------------------------
void PickingDemo::setupRenderables() {
cube = Renderable(&vao, &shader, &batchInfoMap.at("cube"));
sphere = Renderable(&vao, &shader, &batchInfoMap.at("sphere"));
torus = Renderable(&vao, &shader, &batchInfoMap.at("torus"));
cube.setPosition(vec3(0.0f, 0.0f, -5.0f));
cube.setPose(angleAxis(PI/3.0f, vec3(0.0f, 1.0f, 0.0f)));
cube.setEmissionLevels(vec3(0.0f));
cube.setAmbientLevels(vec3(1.0f, 1.0f, 1.0f));
cube.setDiffuseLevels(vec3(0.2f, 0.7f, 0.2f));
cube.setSpecularIntensity(0.3f);
cube.setShininessFactor(10.0f);
sphere.setPosition(vec3(-0.8f, 0.5f, -7.0f));
sphere.setEmissionLevels(vec3(0.0f));
sphere.setAmbientLevels(vec3(1.0f, 1.0f, 1.0f));
sphere.setDiffuseLevels(vec3(0.9f, 0.2f, 0.2f));
sphere.setSpecularIntensity(0.3f);
sphere.setShininessFactor(10.0f);
torus.setPosition(vec3(0.5f, -0.5f, -8.0f));
torus.setEmissionLevels(vec3(0.0f));
torus.setAmbientLevels(vec3(1.0f, 1.0f, 1.0f));
torus.setDiffuseLevels(vec3(0.2f, 0.2f, 0.9f));
torus.setSpecularIntensity(0.3f);
torus.setShininessFactor(10.0f);
}