Дизайн
- 3 ответа
- 0 вопросов
2
Вклад в тег
precision mediump float;
uniform sampler2D velocity;
uniform sampler2D pressure;
uniform float redMax;
uniform float redMin;
uniform float redRate;
uniform float greenMax;
uniform float greenMin;
uniform float greenRate;
uniform float blueMax;
uniform float blueMin;
uniform float blueRate;
varying vec2 uv;
void main(){
gl_FragColor = vec4(
//(texture2D(pressure, uv)).x,
//(texture2D(velocity, uv) * 1.5 + 0.5).xy,
max(redMax - texture2D(velocity, uv).x * redRate, redMin),
max(greenMax - texture2D(velocity, uv).y * greenRate, greenMin),
max(blueMax - (texture2D(pressure, uv)).x * blueRate, blueMin),
1.0);
}
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=/home/sanan/logs/log4j.log
log4j.appender.file.MaxFileSize=1MB
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
# Root logger option
log4j.rootLogger=FATAL, file
# Log everything. Good for troubleshooting
log4j.logger.org.hibernate=FATAL
# Log all JDBC parameters
log4j.logger.org.hibernate.type=ERROR
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
</dependency>