File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#import " CCEffect.h"
10
10
#import " CCEffect_Private.h"
11
- #import " CCtexture .h"
11
+ #import " CCTexture .h"
12
12
13
13
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
14
14
NSString * const CCShaderUniformPreviousPassTexture = @" cc_PreviousPassTexture" ;
@@ -537,7 +537,7 @@ - (CCEffectPrepareStatus)prepareForRendering
537
537
-(CCEffectRenderPass *)renderPassAtIndex : (NSInteger )passIndex
538
538
{
539
539
NSAssert ((passIndex >= 0 ) && (passIndex < _renderPasses.count), @"Pass index out of range.");
540
- return _renderPasses[passIndex];;
540
+ return _renderPasses[passIndex];
541
541
}
542
542
543
543
-(BOOL )stitchSupported : (CCEffectFunctionStitchFlags)stitch
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ -(void)buildFragmentFunctions
137
137
138
138
// Add the reflected color modulated by the fresnel term. Multiplying by the normal
139
139
// map alpha also allows the effect to be disabled for specific pixels.
140
- float fresnel = max (u_fresnelBias + (1.0 - u_fresnelBias) * pow ((1.0 - nDotV), u_fresnelPower), 0.0 );;
140
+ float fresnel = max (u_fresnelBias + (1.0 - u_fresnelBias) * pow ((1.0 - nDotV), u_fresnelPower), 0.0 );
141
141
vec4 reflection = normalMap.a * fresnel * texture2D (u_reflectEnvMap, reflectTexCoords);
142
142
143
143
return primaryColor + refraction + reflection;
Original file line number Diff line number Diff line change @@ -106,12 +106,12 @@ -(void)buildFragmentFunctions
106
106
// Compute the combination of the sprite's color and texture.
107
107
vec4 primaryColor = inputValue;
108
108
109
- float fresnel = max (u_fresnelBias + (1.0 - u_fresnelBias) * pow ((1.0 - nDotV), u_fresnelPower), 0.0 );;
109
+ float fresnel = max (u_fresnelBias + (1.0 - u_fresnelBias) * pow ((1.0 - nDotV), u_fresnelPower), 0.0 );
110
110
111
111
// If the refracted texture coordinates are within the bounds of the environment map
112
112
// blend the primary color with the refracted environment. Multiplying by the normal
113
113
// map alpha also allows the effect to be disabled for specific pixels.
114
- primaryColor += normalMap.a * fresnel * texture2D (u_envMap, reflectTexCoords);
114
+ primaryColor += normalMap.a * fresnel * texture2D (u_envMap, reflectTexCoords);
115
115
return primaryColor;
116
116
);
117
117
You can’t perform that action at this time.
0 commit comments