当前位置: 首页>>代码示例>>Java>>正文


Java GL2.GL_LIGHT0属性代码示例

本文整理汇总了Java中com.jogamp.opengl.GL2.GL_LIGHT0属性的典型用法代码示例。如果您正苦于以下问题:Java GL2.GL_LIGHT0属性的具体用法?Java GL2.GL_LIGHT0怎么用?Java GL2.GL_LIGHT0使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.jogamp.opengl.GL2的用法示例。


在下文中一共展示了GL2.GL_LIGHT0属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Light

public Light(float[] ambient, float[] diffuse, float[] specular, float[] position, float[] direction,
		float[] spot_exponent, float[] spot_cut_off, float[] attenuation, int attenuation_type,
		float[] light_model_ambient, float[] light_model_two_side, int lightID) {
	this.ambient = ambient.clone();
	this.diffuse = diffuse.clone();
	this.specular= specular.clone();
	this.position=position.clone();
	this.direction=direction.clone();
	this.spot_exponent=spot_exponent.clone();
	this.spot_cut_off=spot_cut_off.clone();
	this.attenuation=attenuation.clone();
	this.light_model_ambient=light_model_ambient.clone();
	this.light_model_two_side=light_model_two_side.clone();
	this.attenuation_type = attenuation_type;
	this.light_nr = lightID + GL2.GL_LIGHT0;
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:16,代码来源:Light.java

示例2: deriveAmbient

public Light deriveAmbient(Color ambient){
	return new Light(toArray(ambient), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例3: deriveDiffuse

public Light deriveDiffuse(Color diffuse){
	return new Light(ambient.clone(), toArray(diffuse), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例4: deriveSpecular

public Light deriveSpecular(Color specular){
	return new Light(ambient.clone(), diffuse.clone(), toArray(specular), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例5: derivePosition

public Light derivePosition(PointF3 position, float w){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), toArray(position, w), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例6: deriveDirection

public Light deriveDirection(VectorF3 direction){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), toArray(direction),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例7: deriveSpotExponent

public Light deriveSpotExponent(float spotExp){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			new float[]{spotExp}, spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例8: deriveSpotCutOff

public Light deriveSpotCutOff(float spotExp){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), new float[]{spotExp}, attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例9: deriveAttenuation

public Light deriveAttenuation(float attenuation){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), new float[]{attenuation}, attenuation_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例10: deriveAttenuationType

public Light deriveAttenuationType(int att_type){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), att_type,
			light_model_ambient.clone(), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例11: deriveLightModelAmbient

public Light deriveLightModelAmbient(Color c){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			toArray(c), light_model_two_side.clone(), light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java

示例12: deriveLightModelTwoSide

public Light deriveLightModelTwoSide(float twoside){
	return new Light(ambient.clone(), diffuse.clone(), specular.clone(), position.clone(), direction.clone(),
			spot_exponent.clone(), spot_cut_off.clone(), attenuation.clone(), attenuation_type,
			light_model_ambient.clone(), new float[]{twoside}, light_nr-GL2.GL_LIGHT0);
}
 
开发者ID:ZetzmannM,项目名称:CGL,代码行数:5,代码来源:Light.java


注:本文中的com.jogamp.opengl.GL2.GL_LIGHT0属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。